graphql-request
graphql-request copied to clipboard
How can get the headers on response ?
I was playing with dist/src/index.js
Why return response.data instead response? i'm trying to get the headers on the response, but when return response.data, i can't access to headers methods u.u.
maybe in the future?
Would be useful as an optional info whenever GraphQL Errors are thrown.
My headers are always empty. I can see the headers in Chromes network tab.
PR welcome
Turns out it was the server missing a CORS header.