1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
The web service running on the EC2 instances is using an endpoint to make its services available to calling clients. Whatever you are using to create these endpoints typically has a CORS on/off setting. Additionally, there is usually a policy associated with this setting that lists what origins are allowed to call the web service. This list of domains is configured somewhere in the code or a config file. What the service endpoint on the ec2 instance receives a request, it will check its CORS domain list and only send a CORS header for that specific domain if it is in the list. Here is a link to how you enable CORS in ASP.Net Core. It may be similar for the language you are using.
beantwortet vor 7 Monaten
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr