Hi,
I’ve been working with an app for a while, which has been working fine with API requests to a backend, after we set up the backend to allow requests from http://ionic
Today, we tried it on a Samsung S10 (Android 9) and it fails, and i get this message when debugging the error:
Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header has a value ‘ionic://’ that is not equal to the supplied origin. Origin ‘ionic://’ is therefore not allowed access.
To me the Access-Control-Allow-Origin header value seem identical to the Origin value. At least is seems identical to me. Anyone else who has seen this before and know why it happens, and know a way to fix it?
Thanks in advance,
Lars
1 post - 1 participant