Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1631

Can CORS be setup to allow for different scheme and hostname?

$
0
0

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

  1. Different hostnames
  2. 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?


Viewing all articles
Browse latest Browse all 1631

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>