# Getting cookies disabled error from Okta OIDC

**URL:** <https://devforum.okta.com/t/getting-cookies-disabled-error-from-okta-oidc/22179>\
**Category:** OAuth/OIDC\
**Created:** [October 18, 2022, 7:12pm UTC](https://devforum.okta.com/t/getting-cookies-disabled-error-from-okta-oidc/22179 "2022-10-18T19:12:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vimi05](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vimi05/32/4271_2.png) [@vimi05](https://devforum.okta.com/u/vimi05)\
**Post date:** [October 18, 2022, 7:12pm UTC](https://devforum.okta.com/t/getting-cookies-disabled-error-from-okta-oidc/22179/1 "2022-10-18T19:12:04Z")

</div>

I am using Okta OIDC - `signInWithBrowser` method. It was working fine earlier, even it is working as expected on some of iPhones and iPads. But suddenly since last 2 weeks, on some device getting error as below when I am trying to login in Okta.  
**Cookies are disabled on your browser. Please enable Cookies and refresh this page.**

 ![Okta](https://global.discourse-cdn.com/oktadev/original/2X/a/a7268d2831f0ffe0bfc95a951b0ffa33ff8a7fec.jpeg)

I have searched about it and read on [Okta Develop Page](https://developer.okta.com/docs/guides/session-cookie/main/). There is small note I found about it. But I have some confusions :

 ![Screenshot 2022-10-19 at 12.07.29 AM](https://global.discourse-cdn.com/oktadev/original/2X/7/7eaaf2a6ea134db537b7ae9403c8d918f02f22f7.png)

1. I am using login method `signInWithBrowser`, not opening or using any browser manually.
2. I have Microsoft Edge and Safari browsers on my device. I don’t think it is relevant as `signInWithBrowser` open in `WebView`.
3. Also on some device it is working fine. (All device has Microsoft Edge and Safari browsers as this is not end user app)
4. And I am not in zones, where Okta is stopped working since October 2022 [Here](https://support.okta.com/help/s/article/FAQ-How-Blocking-Third-Party-Cookies-Can-Potentially-Impact-Your-Okta-Environment?language=en_US&_ga=2.9811446.2118176718.1666117618-1220878575.1665589264) and [Here](https://support.okta.com/help/s/article/Important-Customer-Update-to-Okta-IP-Access-Policy?language=en_US)

If anyone knows about it, guide me. Thanks

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [October 18, 2022, 7:32pm UTC](https://devforum.okta.com/t/getting-cookies-disabled-error-from-okta-oidc/22179/2 "2022-10-18T19:32:28Z")

</div>

Hello,  
If you are using `signInWithBrowser` there should not be an issue if you have 3rd party cookies blocked.  
The error sounds more like these devices have All Cookies blocked.

- On a device if you go to Settings \> Safari
- Check if `BlockAll Cookies` is enabled

Could be all devices somehow were updated at the same time to block cookies.

---

<div class="post-metadata">

**Author:** ![vimi05](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vimi05/32/4271_2.png) [@vimi05](https://devforum.okta.com/u/vimi05)\
**Post date:** [October 18, 2022, 7:38pm UTC](https://devforum.okta.com/t/getting-cookies-disabled-error-from-okta-oidc/22179/3 "2022-10-18T19:38:30Z")

</div>

Thanks for your time.

Yes, I did check cookies option in `Settings --> Safari`, but no luck.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 10:13pm UTC](https://devforum.okta.com/t/getting-cookies-disabled-error-from-okta-oidc/22179/4 "2024-02-12T22:13:35Z")

</div>

Closed on February 12, 2024, 10:13pm UTC


