Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29549

Enable Cors in AWS EC2 [duplicate]

$
0
0

I have a nodeJS server running in AWS EC2 container...

But, when I try to make a post, I receive this message :

Access to XMLHttpRequest at 'api.viladalila.online:3001/session' from origin 'http://viladalila.site' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

I tried to add CORS, but did not work!


Viewing all articles
Browse latest Browse all 29549

Trending Articles



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