-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug: Cors error #2132
Comments
I'm seeing a similar issue on Android only since upgrading to v1.3.0. From what I can tell based on the logs it may be related to this change ccc00b3 The logs indicate that my server's API URL is being treated as a local request and is calling handleLocalRequest instead of handleProxyRequest. In my case the "server.url" property is not set in capacitor.config.json which means this is always evaluating to true. I'm not 100% certain this is the case, but I'm going to downgrade to v1.2.1 in the interim. I have validated that the issue is not present for me on this version. |
Hi @pklime2 , Can you share your capacitor.config.json, i am not sure whether i will have to add
btw what is the purpose of this server url. Thank you |
This is what I currently have set
Based on the documentation it looks like the server.url property is used for loading a local web server for live reloading (e.g. Angular), but in my case I'm seeing this error on a build created using |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
npx cap doctor
output:Affected Platform(s)
Current Behavior
Getting cors error in real device even cors is already enabled at backend side. With ionic 3 it is working fine.
I have set this in capacitor.config.json
Expected Behavior
It should work like ionic 3.
Sample Code or Sample Application Repo
Reproduction Steps
Other Technical Details
npm --version
output: 6.9.0node --version
output: v10.16.3pod --version
output (iOS issues only):Other Information
The text was updated successfully, but these errors were encountered: