ionic-team / ionic-team/cordova-plugin-ionic-webview
Cordova 10 CORS policy error.
Open
- Dominant language
- Objective-C
- Stars
- 493
- Forks
- 410
- PR merge metrics
- No merged PRs in 30d
Description
I am upgrading the app from cordova 9 to 10. In cordova 10, whitelist plugin is not supported. Also I am unable to change hostname in client side. I am getting the following error.
Access to XMLHttpRequest at "url" from origin 'https://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'url' that is not equal to the supplied origin."
Kindly provide client side solution as backend changes are avoided due to security reasons.
Contributor guide
Assessment
This issue has not been assessed yet.