Application Load Balancer return 405 method not allowed for OPTIONS verb

0

My ALB points to my API in Fargate. Running my API locally it responds correctly.

All other end-points and http verbs appear to be working fine.

I don't see any settings anywhere that can impact http verbs with the ALB, target groups, etc.

Appreciate any advice Thanks, Jon

已提问 3 个月前212 查看次数
1 回答
3
已接受的回答

If you're using ALB to route traffic to your applications (for instance, containers running on ECS with Fargate or EC2 instances), you need to ensure that your application or the web server it's running on is configured to return the necessary CORS headers in response to preflight OPTIONS requests as well as other applicable requests.

profile picture
专家
已回答 3 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则