<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000978l7gCAAOkta Classic EngineAPI Access ManagementAnswered2023-04-28T16:10:49.000Z2023-04-27T19:20:23.000Z2023-04-28T16:10:49.000Z

AWS ALB Cross-Origin Request Blocked CORS header ‘Access-Control-Allow-Origin’ missing

Trying to connect AWS ALB to OKTA

 

We get

 

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://dev-123456-okta.login.adsbillinghub.com/oauth2/default/v1/authorize?client_id=XYZ&redirect_uri=https%3A%2F%2XYZ%2Foauth2%2Fidpresponse&response_type=code&scope=openid%20profile%20email%20offline_access&state=XYZ. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200

 

We defined OKTA as our OIDC-compliant IdP as shown in this article:

 

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html*oidc-requirements

 

Our JS code is making a request to the ALB. This trigger the JS to make another request to /authorize

 

We've set https://XYZ as a trusted origin when creating the Application

We've set https://XYZ as a trusted origin in the Globally trusted origins

 

If we can discover the origin we can add it to the trusted origins.

Is there a way to find out the origin that is being sent to OKTA?

 

Thank you


This question is closed.
Loading
AWS ALB Cross-Origin Request Blocked CORS header ‘Access-Control-Allow-Origin’ missing
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply