<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
0D50Z00008G7UkLSAVOkta Classic EngineIntegrationsAnswered2026-04-24T09:00:25.000Z2017-04-14T19:53:04.000Z2020-12-17T23:57:31.000Z
sign in widget logs in but gives 403
I've set up a sign in widget successfully on oktapreview.com and am now trying to move my code to our app on okta.com. It can see a good 200 POST to authn from the sign in widget, but the GET to https://company.okta.com/login/sessionCookieRedirect gives a big 403 error.

 

What's weird is I'm actually logged in - I can get to the okta home, or even directly back to to redirect URL I was using in the sign in widget.

 

Any seen this / have a fix?? Same exact code and config as the app that works on oktapreview.com.

 

Thanks,

Nate


CemE.98002 likes this.
  • Hi Nate

     

    Bit late replying to this, I stumbled across when I hit the same issue. Hopefully by now you have solved this but if not try adding a trusted origins entry with CORS and Redirect, that is Security -> API -> Trusted Origins. 

     

    Thanks

    Anthony.
    Expand Post
  • wge4v (wge4v)

    I'm late to the party but just in case anybody stumbles on this, Anthony's answer is 100% but I wanted to make it more precise. A 403 on a sessionCookieRedirect means that you didn't allow redirections to the target app in the Trusted Origins configuration, so it's denied. Note that I said the target app, not the app with the widget doing the redirect (unless it is the same app).

     

    Also important: adding the URL to the "Login redirect URI" on the General Settings page of the application configuration is not used for sessionCookieRedirect, as far as I know those URIs support OpenID Connect.

    Expand Post
This question is closed.
Loading
sign in widget logs in but gives 403