# React App - OKTA APIs failing in chrome

**URL:** <https://devforum.okta.com/t/react-app-okta-apis-failing-in-chrome/15757>\
**Category:** Questions\
**Created:** [August 27, 2021, 4:23pm UTC](https://devforum.okta.com/t/react-app-okta-apis-failing-in-chrome/15757 "2021-08-27T16:23:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rameshm](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rameshm](https://devforum.okta.com/u/rameshm)\
**Post date:** [August 27, 2021, 4:23pm UTC](https://devforum.okta.com/t/react-app-okta-apis-failing-in-chrome/15757/1 "2021-08-27T16:23:29Z")

</div>

Okta API calls being blocked in chrome for some users with error net:ERR\_FAILED and works in safari and edge.

it’s react application using below okta-react npm modules to connect to okta server

Version : @okta/okta-react/6.1.0 okta-auth-js/5.2.3

Error : chrome blocks call ( token, openid-config, userinfo ) with net:ERR\_FAILED and preflight fails.

All required redirection domains has been white-listed at okta server end.

Any suggestion on this would be really appreciated…

---

<div class="post-metadata">

**Author:** ![tyty](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyty](https://devforum.okta.com/u/tyty)\
**Post date:** [August 27, 2021, 7:20pm UTC](https://devforum.okta.com/t/react-app-okta-apis-failing-in-chrome/15757/2 "2021-08-27T19:20:56Z")

</div>

Interesting that is only for some users - Just want to confirm that those endpoints _do_ indeed work for other users in Chrome?

---

<div class="post-metadata">

**Author:** ![rameshm](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rameshm](https://devforum.okta.com/u/rameshm)\
**Post date:** [August 27, 2021, 7:35pm UTC](https://devforum.okta.com/t/react-app-okta-apis-failing-in-chrome/15757/3 "2021-08-27T19:35:15Z")

</div>

Yes for some users works, we have angular application connecting to same okta server and it works without any issue. seems to be that chrome not liking some headers injected by react okta sdk.

Interestingly if I turn **on CORS** plugin in chrome then seeing the failure - net:ERR\_FAILED.

---

<div class="post-metadata">

**Author:** ![rameshm](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rameshm](https://devforum.okta.com/u/rameshm)\
**Post date:** [August 31, 2021, 12:27am UTC](https://devforum.okta.com/t/react-app-okta-apis-failing-in-chrome/15757/4 "2021-08-31T00:27:43Z")

</div>

FYI - this happens with latest chrome as well.

---

<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 8, 2024, 7:05pm UTC](https://devforum.okta.com/t/react-app-okta-apis-failing-in-chrome/15757/5 "2024-02-08T19:05:31Z")

</div>


