# JWKS endpoint set CORS

**URL:** <https://community.auth0.com/t/jwks-endpoint-set-cors/55712>\
**Category:** Get Help\
**Tags:** jwt, api, login, auth0\
**Created:** [January 5, 2021, 10:55am UTC](https://community.auth0.com/t/jwks-endpoint-set-cors/55712 "2021-01-05T10:55:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnoel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pnoel/32/26683_2.png) [@pnoel](https://community.auth0.com/u/pnoel)\
**Post date:** [January 5, 2021, 10:55am UTC](https://community.auth0.com/t/jwks-endpoint-set-cors/55712/1 "2021-01-05T10:55:30Z")

</div>

Hello Greetings,

I’m using auth0.js library in my SPA.

I would like to know is it possible to set CORS origin for **JWKS endpoint** https://MY\_AUTH0\_DOMAIN/.well-known/jwks.json

If so where can I set the CORS origin of my application (eg: [https://abc.com](https://abc.com)) for the **JWKS endpoint** so that only that application is able to make the call to the **JWKS endpoint**

Thanks in advance.

Regards  
Noel

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [January 5, 2021, 2:01pm UTC](https://community.auth0.com/t/jwks-endpoint-set-cors/55712/3 "2021-01-05T14:01:52Z")

</div>

Hi @pnoel

What is the use case for this? The JSON web key set is designed to be publically consumed, why are you hiding it?

John

---

<div class="post-metadata">

**Author:** ![pnoel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pnoel/32/26683_2.png) [@pnoel](https://community.auth0.com/u/pnoel)\
**Post date:** [January 6, 2021, 7:10am UTC](https://community.auth0.com/t/jwks-endpoint-set-cors/55712/4 "2021-01-06T07:10:46Z")

</div>

Hi @john.gateley

Thanks for your reply.

The use case was I wanted the JWKS endpoint to be called from my web application origin alone. and not to be called from another unknown web application origin to add an extra level of security.

So my understanding is there’s no way to set the CORS for **JWKS endpoint** since it’s designed that way.

Thank you for your clarification,

Noel

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 7, 2021, 3:44pm UTC](https://community.auth0.com/t/jwks-endpoint-set-cors/55712/5 "2021-01-07T15:44:01Z")

</div>

We are here for you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 22, 2021, 3:44pm UTC](https://community.auth0.com/t/jwks-endpoint-set-cors/55712/6 "2021-01-22T15:44:03Z")

</div>

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