ionic-team / ionic-team/cordova-plugin-ionic-webview

Cordova 10 CORS policy error.

Open
#655 1 comment 4 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.