尝试从https://subdomain-b.abc.com/服务访问 graphql url 时,我遇到了以下错误。
POST https://subdomain-a.abc.com/graphql 504
Access to fetch at 'https://subdomain-a.abc.com/graphql' from origin 'https://subdomain-b.abc.com/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
两个服务都在 Fargate 上的同一个 aws 帐户上运行,ELB 位于它们前面。Route 53 正在将请求重定向到 ELB。
我搜索的大多数答案都与 S3 存储桶有关,而我的设置并非如此。让我知道我是否可以提供更多详细信息。