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

1 réponse
3
Réponse acceptée

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
EXPERT
répondu il y a 3 mois
profile picture
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions