Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

wkwebview will fail if server not allow cors. #124

Closed
JiaLiPassion opened this issue Apr 12, 2017 · 1 comment · May be fixed by #115
Closed

wkwebview will fail if server not allow cors. #124

JiaLiPassion opened this issue Apr 12, 2017 · 1 comment · May be fixed by #115

Comments

@JiaLiPassion
Copy link

The issue has been discussed in #3, and other issues, in wkWebview plugin 3.0, we have a local web server options to resolve origin is null issue, but if server not support CORS, we still fail to send any requests to server.

@manucorporat
Copy link

So, CORS in enforced by WKWebView which is a dynamic library provided by Apple. We can't nothing about it.

You have two options:

  1. Implement CORS in your server
  2. Use the native HTTP plugin: http://ionicframework.com/docs/native/http/
    This plugin will use native code to perform the request, bypassing this way the CORS checks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants