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.
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.