<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
/api/v1/sessions/me Endpoint Does not Return Current Session for IE11
Okta Classic Engine
Okta Identity Engine
API Access Management
Overview

The /api/v1/sessions/me endpoint encounters a 404 Not Found error in Internet Explorer 11, despite the user having authenticated into Okta.

Applies To
  • Internet Explorer 11 (IE 11)
  • Okta API
Cause
Internet Explorer has, by default, strict third-party cookie settings that result in Okta not being able to set a session cookie, "sid", upon successful authentication.

Without this cookie set, requests to Okta that expect this cookie to be present will fail despite the user having logged in successfully.

If checking for the existence of a session using either the API endpoint /api/v1/sessions/me or one of our front-end SDKs or attempting to log out of a session in Internet Explorer, a 404 Not Found error will be encountered if the cookie was not set in the browser.
Solution

For /sessions/me to return information about the current user's session successfully in Internet Explorer 11, ensure the following:

  • Internet Explorer is set to allow third-party cookies.

  • The Okta domain, https://{{org}}.okta.com, and the Custom Domain (if using one) are added as Trusted Sites in Internet Explorer.


Related References

Loading
/api/v1/sessions/me Endpoint Does not Return Current Session for IE11