<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
0D54z00007ybicQCAQOkta Classic EngineSingle Sign-OnAnswered2022-08-22T21:21:54.000Z2022-08-20T00:17:37.000Z2022-08-22T21:21:54.000Z

PrateekT.00945 (Customer) asked a question.

"Origin" header is null when sending SAML Response to Okta Application

Hi Okta Support,

 

I am currently integrating SSO through an Okta SAML App Integration with my own application. I've noticed that after I've authenticated through Okta log in widget and the SAML Response gets sent from Okta to the SSO Url, the "Origin" Header in that Request is null. On our application, we would like to have CRSF protection, which means we would only allow requests from a white list of specified origins. We need some way to verify that any incoming requests are from the allowed origins, and we rely on the "Origin" Request Header to be set in order to determine the origin of the request. However, since the "Origin" Request Header is null we cannot currently verify incoming SAML Responses from Okta.

 

Is this a known issue? Is there any configuration in my Okta SAML App Integration that I'm missing, which could make our Okta SAML App actually populate the "Origin" Header when sending the SAML Response to SSO URL instead of just null?

 

Thanks,

Prateek


  • Mihai N. (Okta, Inc.)

    Hi @PrateekT.00945 (Customer)​ , Thank you for reaching out to the Okta Community!

     

    Just tested the SAML flow with a random app (non-valid parameters) I've set up in my environment with default SAML settings and the Origin header had the proper information.  

    Please see my apps settings below and compare with what you have, maybe something is missing.  

    Single Sign On URLThe app was set up using the Okta SAML App Integration Wizard:

    https://help.okta.com/en-us/Content/Topics/Apps/Apps_App_Integration_Wizard_SAML.htm

     

    *In case it matters - I've validated the assertion with a SAML Tracer extension in my browser.  

     

    If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

    --------------------------------

    The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.

    Expand Post
    Selected as Best
  • Mihai N. (Okta, Inc.)

    Hi @PrateekT.00945 (Customer)​ , Thank you for reaching out to the Okta Community!

     

    Just tested the SAML flow with a random app (non-valid parameters) I've set up in my environment with default SAML settings and the Origin header had the proper information.  

    Please see my apps settings below and compare with what you have, maybe something is missing.  

    Single Sign On URLThe app was set up using the Okta SAML App Integration Wizard:

    https://help.okta.com/en-us/Content/Topics/Apps/Apps_App_Integration_Wizard_SAML.htm

     

    *In case it matters - I've validated the assertion with a SAML Tracer extension in my browser.  

     

    If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

    --------------------------------

    The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.

    Expand Post
    Selected as Best
    • PrateekT.00945 (Customer)

      Hi @Mihai N. (Okta, Inc.)​ ,

       

      Thanks for your reply! I checked my SAML App Settings, and they are practically identical to the ones that you have configured (except the SSO Url of course):

       

      saml app settings 

      However, the Origin header is still set to null:

       

      Origin Request Header set to null (highlighted in blue)

      Expand Post
      • Mihai N. (Okta, Inc.)

        This warrants a deeper investigation and this is not the proper medium for it. Please open a case to have one of our Support Engineers investigate the issue.

This question is closed.
Loading
"Origin" header is null when sending SAML Response to Okta Application