This has also just started occurring for our site this afternoon, 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
@Phil
Hey Phil, this still isnt working for me both here https://cassette-prismic-nuxt-staging.herokuapp.com/
and on my local version. Ive republisjed all documents across the site and for local reduced the query significantly to test whether that was the issue but still no dice.
After removing these references from local I still receive the same CORs error.
Im not convined thats the problem anyway as again, the non local version of our site that hasnt had any changes deployed to it for weeks, and was previously working up until wednesday, isnt
Yeah, it's strange that it added the CDN parameter to your endpoint.
The CDN link 'https://cassette-prismic-nuxt.cdn.prismic.io/api/v2' in your nuxt.config and sm.json files are used for the prismic-nuxt module and Slice Machine respectively so if you're not using the REST API or Slice Machine you can probably remove these.
The only other thing I can think to do to resolve this is to invalidate your local cache from apollo-cache-inmemory. If that doesn't work can you send me a copy of your project so I can investigate this on my side? I'll also reach out to the team to see if they have any ideas about this.
I moved your posts as your issue is apparently unrelated.
It seems I've been working off of some outdated information. A GraphQL endpoint with the CDN parameter 'https://cassette-prismic-nuxt.cdn.prismic.io/graphql' is totally possible so that's not the issue. It's slso not your local cache.
It seems the issue is coming from a Shared Slice on your repository. I'm getting more information on exactly what that means and I'll get back to you shortly on this.
So the problem that you were seeing here is that the GraphQL endpoint is broken because of an issue with SharedSlice.
When you created the SharedSlice you defined this SharedSlice's fields in snaked case, and we filter out those fields, which ends up defining an empty Slice, which is not authorised with GraphQL.
So if you can rename these fields it should work again.
We've created a PR so the API does not break in that case in the future.
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
9
Threads close after a period of inactivity. Flag this thread to re-open it and continue the conversation.