
70jij (70jij) asked a question.
Hello,
I successfully deployed the sample Express.js app from the Okta quickstart, using a test developer Okta account. I run the app on a container on localhost, and everything works fine and as expected.
However, when I deploy this to AWS ECS behind an ALB, it doesn't work, even though the code being deployed is identical. One of two things happen when trying to hit the Okta protected route:
- The request times out, and a 504 Gateway timeout is thrown by the AWS ALB.
- I get a 403 error from the application.
In the application logs, though, I can see that the application has received the callback code and state from Okta.
Does anyone have any clues as to where the issue might be? Is the likely culprit the App Integration and/or security policies in the org Okta tenant?

Hi, @70jij (70jij)
Thank you for posting on our Community page!
Here is a previously answered question somehow related to your case, although I think our Dev forum would be the best place to ask
https://support.okta.com/help/s/question/0D54z000082WEC5CAO/my-spa-application-working-fine-in-local-but-its-not-working-after-deployed-aws-ecs?language=en_US
Thank you for reaching out to our Community and have a great day!
--
Join the discussion for the Ask Me Anything online event on May 23, 2024 with Okta Tactical Edge Product Experts