I tried to consume graphQL like the example provided in the documentation using java script but i got cros origin error
Have you tried using Apollo?
I haven’t tried it yet to be honest, but I found this article that looks interesting
Thanks for catching that! We will be reviewing our documentation
Let us know if that doesn’t work for you
Hello @tomasw ,
could you please return from your side in every response header
res.setHeader('Access-Control-Allow-Origin', '*'); // Request methods you wish to allow res.setHeader('Access-Control-Allow-Methods', '*'); // Request headers you wish to allow res.setHeader('Access-Control-Allow-Headers', '*');
I apologize for the delayed response about this. We will engage our engineering team to see if we can figure this out and try to provide a better solution for this.
Thanks again for the patience!
I am following up with you regarding the above issue.
My apologies for the delayed response about this.
Unfortunately, we haven’t been able to reproduce this, but when we check the headers for the Queries we do notice that the header is present so it should be already available:
That screenshot is consuming the Public API using Altair
Let me know if that still doesn’t help!
can you please check this issue that what I am talking about Learn CORS In 6 Minutes - YouTube
I need shiphero server in response header to return this attribute with * value