I am trying to make an API call like: 'https://example.com/fake' from my origin which is 'http://127.0.x.x:4200'. My origin is currently hosted on node http-server.
I currently see the error: Access to XMLHttpRequest at '...' from origin '...' has been block by CORS policy. It doest not have HTTP ok status.
I see that there can be 2 potential errors regarding CORS
- Different hostnames
- https vs http
I am also making this call in a mobile app through MFE architecture.
Is it possible to allow this via CORS? Could I allow both cross origin AND https vs. http? And if so how?