You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GraphQLHttpRequest.ToHttpRequestMessage method creates new HttpRequestMessage but there is no way to pass custom header to this new HttpRequestMessage. For our unit tests, we need to pass auth header into HttpRequestMessage. Is this something possible to get fixed in future releases?
The text was updated successfully, but these errors were encountered:
manishpatel42
changed the title
Headers into GraphQLRequest
Headers into GraphQLHttpRequest
Jun 7, 2023
I solved this issue by adding my Request Headers to the HttpClient when the GraphQLClient was made. This will now add the x-api-key as a header to every GraphQL request.
GraphQLHttpRequest.ToHttpRequestMessage method creates new HttpRequestMessage but there is no way to pass custom header to this new HttpRequestMessage. For our unit tests, we need to pass auth header into HttpRequestMessage. Is this something possible to get fixed in future releases?
The text was updated successfully, but these errors were encountered: