# Regression: The .well-known/jwks.json file throws 502 Bad Gateway

**URL:** <https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [February 4, 2021, 9:05pm UTC](https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382 "2021-02-04T21:05:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajv](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ajv/32/8910_2.png) [@ajv](https://community.auth0.com/u/ajv)\
**Post date:** [February 4, 2021, 9:05pm UTC](https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382/1 "2021-02-04T21:05:21Z")

</div>

This seems to be a regression of [Missing CORS headers for cached /.well-known/jwks.json • Auth0 Status Page](https://status.auth0.com/incidents/rx8wtk8svly4?_ga=2.200136619.427680575.1612429856-732719139.1610716768)

Also linked to [No 'Access-Control-Allow-Origin' header is present on the requested resource - #8 by JayWelsh](https://community.auth0.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/56311/8)

When trying to authenticate, our `<custom-domain>.com/.well-known/jwks.json` file throws a CORS error client-side:

```auto
Access to fetch at 'https://login.klausapp.com/.well-known/jwks.json' from origin
'https://kibbles.klausapp.com' has been blocked by CORS policy: 
No 'Access-Control-Allow-Origin' header is present on the requested resource.
If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

```

But when visiting the URL itself, it responds with a **502 Bad Gateway**

 ![Screenshot 2021-02-04 at 22.59.28](https://global.discourse-cdn.com/auth0/original/3X/8/5/8589f2d362e2a2a786ec718c9a4e4a0195037133.png)

This means that currently none of our users are able to log in. This is happening on our production tenant.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 4, 2021, 9:11pm UTC](https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382/3 "2021-02-04T21:11:01Z")

</div>

Hi @ajv ,

We have identified this incident and are investigating. You can track the status here:

[https://status.auth0.com/incidents/35zbp16lwqm5](https://status.auth0.com/incidents/35zbp16lwqm5)

---

<div class="post-metadata">

**Author:** ![ajv](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ajv/32/8910_2.png) [@ajv](https://community.auth0.com/u/ajv)\
**Post date:** [February 4, 2021, 9:14pm UTC](https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382/4 "2021-02-04T21:14:34Z")

</div>

Thanks for a swift response Dan. Although the status page lists only EU as the affected region, we’re also getting reports from Canada and Texas for this.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 4, 2021, 9:15pm UTC](https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382/5 "2021-02-04T21:15:20Z")

</div>

Can you please DM me the affected tenant names?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 4, 2021, 11:04pm UTC](https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382/6 "2021-02-04T23:04:39Z")

</div>

This issue has been resolved. Please open a new topic if you experience any interruptions.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 4, 2021, 11:04pm UTC](https://community.auth0.com/t/regression-the-well-known-jwks-json-file-throws-502-bad-gateway/57382/7 "2021-02-04T23:04:41Z")

</div>


