# Openid-configuration request blocked by CORS policy

**URL:** <https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607>\
**Category:** Questions\
**Created:** [April 1, 2021, 5:37pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607 "2021-04-01T17:37:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckantzer](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@ckantzer](https://devforum.okta.com/u/ckantzer)\
**Post date:** [April 1, 2021, 5:37pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/1 "2021-04-01T17:37:21Z")

</div>

Hello,  
We recently starting seeing an issue in the console with our Okta integration on Chrome browsers. New version of Chrome and Edge do not have this issue.

'Access to XMLHttpRequest at ‘[https://mycompany.okta.com/.well-known/openid-configuration](https://mycompany.okta.com/.well-known/openid-configuration)’ from origin ‘[mycompany.com](http://mycompany.com)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

We’ve verified that the CORS policy is set correctly in Okta for our client domain. We know this is an issue with Chrome, but we’d like to avoid switching or updating our users browsers.

I’ve tried setting the issuer field in the Okta auth component, but we still are getting the error. I’m using OktaAuth 3.2.5 in our legacy Angular app. We are using the .getWithoutPrompt method on OktaAuth.

We are not seeing the CORS error on other Okta calls (authorize, etc). Is there a way to fix this or disable the call to openid-configuration for our flow?

Thanks,  
Chris

---

<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:** [April 1, 2021, 8:23pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/2 "2021-04-01T20:23:45Z")

</div>

Our SDKs automatically make a CORS request to your well-known endpoint to dynamically fetch information about your authorization server’s endpoints.

You mentioned this is an issue in Chrome only. Does it only affect certain users? If so, can you try clearing your browser cache/cookies and re-testing it?

---

<div class="post-metadata">

**Author:** ![ckantzer](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@ckantzer](https://devforum.okta.com/u/ckantzer)\
**Post date:** [April 1, 2021, 8:26pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/3 "2021-04-01T20:26:15Z")

</div>

No, it affects anyone using Chrome version 87. We wiped all cache/cookies and still see the issue.

---

<div class="post-metadata">

**Author:** ![ce\_ryan](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@ce\_ryan](https://devforum.okta.com/u/ce_ryan)\
**Post date:** [April 6, 2021, 1:52pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/4 "2021-04-06T13:52:10Z")

</div>

Same issue here. Just started happening yesterday to our users on Chrome only. Clearing the cache does not seem to work. Have asked them to use Edge in the meantime.

Update. Also happening on Firefox. Has been working fine for over a year.

We are also seeing this issue on Chrome version 89

---

<div class="post-metadata">

**Author:** ![gpadma](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@gpadma](https://devforum.okta.com/u/gpadma)\
**Post date:** [April 6, 2021, 8:05pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/5 "2021-04-06T20:05:42Z")

</div>

Hi @ce_ryan, @ckantzer,

Could you email [developers@okta.com](mailto:developers@okta.com) with the details so that one of the Engineers can help you with this ?

Thanks!

---

<div class="post-metadata">

**Author:** ![ckantzer](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@ckantzer](https://devforum.okta.com/u/ckantzer)\
**Post date:** [April 7, 2021, 1:33pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/6 "2021-04-07T13:33:26Z")

</div>

I opened a ticket in Git [Openid-configuration request blocked by CORS policy · Issue #679 · okta/okta-auth-js · GitHub](https://github.com/okta/okta-auth-js/issues/679). Does this have enough detail or do you need more info?

---

<div class="post-metadata">

**Author:** ![gpadma](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@gpadma](https://devforum.okta.com/u/gpadma)\
**Post date:** [April 8, 2021, 1:57am UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/7 "2021-04-08T01:57:51Z")

</div>

@ckantzer @ce_ryan Okta has identified the resolution for this issue. If you still get the cors error, please email [developers@okta.com](mailto:developers@okta.com) mentioning your okta org subdomain and the other details.

---

<div class="post-metadata">

**Author:** ![ckantzer](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@ckantzer](https://devforum.okta.com/u/ckantzer)\
**Post date:** [April 8, 2021, 4:02pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/8 "2021-04-08T16:02:51Z")

</div>

Are you able to post the resolution here or do we need to email the developers?

---

<div class="post-metadata">

**Author:** ![ce\_ryan](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@ce\_ryan](https://devforum.okta.com/u/ce_ryan)\
**Post date:** [April 8, 2021, 4:05pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/9 "2021-04-08T16:05:00Z")

</div>

We are gathering some additional information as we are still seeing this issue as of this morning and getting reports of users who’s Chrome was working and now has stopped working this morning with the same error. Will send an email to the developers with OS versions and Chrome Versions affected.

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [April 8, 2021, 5:33pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/10 "2021-04-08T17:33:17Z")

</div>

@ce_ryan Hi, this is an known issue, please help check the below workaround. Our ENG is currently fixing it.

> <https://github.com/okta/okta-auth-js/issues/679#issuecomment-816003954>
>
> Hello,
> We recently starting seeing an issue in the console with our Okta integration on Chrome browsers. Newer version of Edge do...

---

<div class="post-metadata">

**Author:** ![ssmirnov](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@ssmirnov](https://devforum.okta.com/u/ssmirnov)\
**Post date:** [April 13, 2021, 3:28am UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/11 "2021-04-13T03:28:51Z")

</div>

The problem still persists. The solution is to click the Chrome refresh icon keeping the Shift button pressed (or cleaning the browser’s files cache). However, the problem is back within an hour or so.

We experienced this issue on Apr 6 at 1:45 pm PST for the first time. An app that worked in production for a couple of weeks without changed stopped to show the CORS error.  
Chrome version is 89.

---

<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:** [April 15, 2021, 8:40pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/12 "2021-04-15T20:40:13Z")

</div>

We have deployed a fix for this in all Orgs. @ce_ryan, @ckantzer, and @ssmirnov, can you re-test your application to see if this behavior persists? As this is related to caching, it may take a few days to fully resolve for your users, so definitely reach out to us again if you still see this issue occurring next week.

Note that if you opened a support case with us about this, we may have helped you test a potential workaround involving disabling some recently deployed features that were related, so your results may differ.

---

<div class="post-metadata">

**Author:** ![ckantzer](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@ckantzer](https://devforum.okta.com/u/ckantzer)\
**Post date:** [April 15, 2021, 9:01pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/13 "2021-04-15T21:01:27Z")

</div>

It looks the fix is working. Users are reporting that they are able to access our applications using Chrome.

Thanks!

---

<div class="post-metadata">

**Author:** ![hamblingreg52](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/hamblingreg52/32/2827_2.png) [@hamblingreg52](https://devforum.okta.com/u/hamblingreg52)\
**Post date:** [April 17, 2021, 8:21am UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/14 "2021-04-17T08:21:49Z")

</div>

> [@ckantzer](#):
>
> Hello,  
> We recently starting seeing an issue in the console with our Okta integration on Chrome browsers. New version of Chrome and Edge do not have this issue.

You method is also working finely in PC thanks for the incredible solution.

---

<div class="post-metadata">

**Author:** ![hamblingreg52](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/hamblingreg52/32/2827_2.png) [@hamblingreg52](https://devforum.okta.com/u/hamblingreg52)\
**Post date:** [April 17, 2021, 8:22am UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/15 "2021-04-17T08:22:27Z")

</div>

@ckantzer I have become a fan of you. 😍

---

<div class="post-metadata">

**Author:** ![ckantzer](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@ckantzer](https://devforum.okta.com/u/ckantzer)\
**Post date:** [April 19, 2021, 1:28pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/17 "2021-04-19T13:28:16Z")

</div>

Thanks, but I just reported this issue. Okta did the heavy lifting and actually released a fix. I was just the squeaky wheel. 😀

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [September 2, 2021, 4:39pm UTC](https://devforum.okta.com/t/openid-configuration-request-blocked-by-cors-policy/13607/18 "2021-09-02T16:39:32Z")

</div>

Closed on September 2, 2021, 4:39pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
