-
Notifications
You must be signed in to change notification settings - Fork 65
HTTP Request Origins set to LocalHost #137
Comments
It is not possible to bypass CORS in WKWebView. You have to implement CORS in your server whitelisting localhost:8080 or you can use the HTTP cordova plugin https://ionicframework.com/docs/native/http/ I recommend to implement CORS in your server though |
Hi , Mr. Manu MA
Could you check my PR,
#115, is it
the correct direction?
thanks .
Jia Li
…On Fri, May 19, 2017 at 9:52 PM, Manu MA ***@***.***> wrote:
It is not possible to bypass CORS in WKWebView. You have to implement CORS
in your server whitelisting localhost or you can use the HTTP cordova
plugin https://ionicframework.com/docs/native/http/
I recommend to implement CORS in your server though
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#137 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYDD53GLbHa1vYvFqSULWHSpPizN-l6ks5r7ZCmgaJpZM4NfVJr>
.
|
@manucorporat -- Would it come into consideration to let consumers decide to mask their origins, from There are many APIs available that are not CORS enabled that this plugin is preventing us from using. When building for web there's many options to proxy to mask Then it's like, do we drop the plugin, and lose the latest web advances (like Is there a win-win scenario where I can call Yelp and have Ionic Sticky Headers too? |
This plugin looks like it changes the HTTP request
origin
header fromfile://
tolocalhost:8080
. This is breaking a lot of calls I'm trying to make to APIs that are not CORS enabled, and do not whitelistlocalhost
as an entry.Can anyone provide some insight?
The text was updated successfully, but these errors were encountered: