-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS issue with cordova-plugin-ionic-webview2.x in Ionic4 #229
Comments
I found the issue caused by the configuration of |
@zcd0000 Did you get any solution for this issue? |
I found the issue caused by the configuration of add_header 'Access-Control-Allow-Headers' * not work when CORS request is from cordova-plugin-ionic-webview. I must list all header types in this configuration just as the below, that's ok. |
Ionic Info
Issues Descriptions
I have installed Nginx reverse proxy server on my computer and configured it to allow CORS.
When my application is opened in Chrome on mac, it can normally finish CORS request without any issues .
But when I deploy it to android device by "cordova run android" command, my application running in ionic-webview doesn't work because of CORS issue. Ionic-webview can normally send "options"
request to my Nginx server, but it has no next response to my server normal "options" response.
The below screenshot displays the network request and response from my device to Nginx server.
The below screenshot is my Nginx server config in nginx.conf file.
The text was updated successfully, but these errors were encountered: