1回答
- 新しい順
- 投票が多い順
- コメントが多い順
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.
回答済み 7ヶ月前
関連するコンテンツ
- AWS公式更新しました 2年前