# CORs Errors from API requests

**URL:** <https://community.prismic.io/t/cors-errors-from-api-requests/6003>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [June 29, 2021, 5:58am UTC](https://community.prismic.io/t/cors-errors-from-api-requests/6003 "2021-06-29T05:58:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![digital2](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@digital2](https://community.prismic.io/u/digital2)\
**Post date:** [June 29, 2021, 5:58am UTC](https://community.prismic.io/t/cors-errors-from-api-requests/6003/1 "2021-06-29T05:58:53Z")

</div>

This has just started occurring for our dev site (localhost) this afternoon. Every page that has a request to the graphQL api throws a cors error and doesnt load the page content.

Ive tried following a few of the other guides on here to fix the issue but so far none have worked. When i click through the error i get a 'Prismic-Ref missing from header' message - however, i can see the prismic-ref: in the request headers

From what i can tell this is/was also being looked at here - [Request header field prismic-ref is not allowed by Access-Control-Allow-Headers in preflight response - #16 by sbaughman](https://community.prismic.io/t/request-header-field-prismic-ref-is-not-allowed-by-access-control-allow-headers-in-preflight-response/1723/16) - it looks to be fairly intermittent so im not sure if a permanent fix has been implemented yet, any updates or help from the prismic team would be much appreciated

![corsError](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/8/8b26125326884af3d97ea8862a05ba32bf88037f.png)

 ![responserequestHeaders](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/c/c2f86ed1bcf8963c4c9ccd6a5ffc728605db18dc.png)

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [June 30, 2021, 8:53am UTC](https://community.prismic.io/t/cors-errors-from-api-requests/6003/6 "2021-06-30T08:53:59Z")

</div>

A post was merged into an existing topic: [GraphQL CORS error](https://community.prismic.io/t/graphql-cors-error/5983)

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [June 30, 2021, 8:54am UTC](https://community.prismic.io/t/cors-errors-from-api-requests/6003/7 "2021-06-30T08:54:16Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 3:39pm UTC](https://community.prismic.io/t/cors-errors-from-api-requests/6003/8 "2021-12-09T15:39:10Z")

</div>


