It ended up not being anything related to the http headers, but instead the JSON data. Since the GraphQL query goes inside a JSON containing "query":"GRAPHQLINSTRUCTION", THERE WERE A LOT OF escape characters that needed to be included, like /n, /t, /t, /", etc. Once I did all that it worked fine. - @Gustavo