cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

Cordova 10 CORS policy error.

Open nishu0808 opened this issue 4 years ago • 1 comments

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.

nishu0808 avatar Oct 27 '21 11:10 nishu0808

I am also experiencing this issue. I am staying on cordova-android 9 and cordova-plugin-whitelist 1.3.4 until there is a solution.

orjandh avatar Nov 16 '21 09:11 orjandh