Weird CORS error on Samsung s 10

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,

In going through my own battles with CORS and phones it seems to be pretty picky.
Again just from what I’m seeing http://ionic would be a different origin then “ionic://” .
Good luck

Yeah. I was tired writing that. I meant that the backend is set up to allow requests from ionic://. My bad.
Thanks for spotting that though.

I don’t seem ti have abilities to edit the original post, and change http://ionic to ionic://.

I’m getting the same problem on a Huawei device now. The supplied origin is exactly the same as what is in the Access-Control-Allow-Origin header. Anyone seen this problem, and know a solution to it?