We're running into an issue with a cors error when trying to query the graphql endpoint from the client side using fetch. Our instance is peerage.prismic.io. Are there any current known issues?
We really need some urgent help with this one, so any help would be hugely appreciated. Many thanks!
To be able to debug this issue, I would need some extra information. Would you please send me a code snippet that gives this QORS error so that I can reproduce it on my side?
So screenshots would help as well with the query you are trying to pass.
We currently don't have any general issue related to this; for more information about outages, please check out the status page.
Thanks @Fares
My colleague who was stuck on this has just popped out for some lunch, but I'll try and provide some further detail in the meantime.
Our api call (GET) is: https://peerage.cdn.prismic.io/graphql?query=query%20{%20%20allFamilys(sortBy:%20name_ASC)%20{%20%20%20%20edges%20{%20%20%20%20%20%20node%20{%20%20%20%20%20%20%20%20name%20%20%20%20%20%20%20%20creations%20%20%20%20%20%20}%20%20%20%20%20%20_meta%20{%20%20%20%20%20%20%20%20%20%20uid%20%20%20%20%20%20}%20%20%20%20}%20%20
Now if we run this on the server (or with Postman) it works fine, but in the browser (client side) we get the following CORS error:
@andrzej@tech.laszlo For what it's worth, we were seeing the same CORS error message, but in our case the actual problem was a parameter we were providing to the Apollo GraphQL client didn't match the parameters expected by the GraphQL query. So be aware that non-CORS issues can result in this error message.
In fact, we have made some changes that might have fixed this issue and improves the error messages. Can you please check if you still have this issue?
Fares
closed , flag & select 'Something Else' to reopen.
10
This thread has been closed due to inactivity. Flag to reopen.