graphql / graphql/graphiql

Big queries lead to big Request header size due to Referrer

Open
#697 0 comments 12 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

As graphiql adds the query to the address bar, and this url gets added as referer header to the POST request to the graphql endpoint, the request header gets to big for big queries and the request fails.

Proposal: add `referrerPolicy: "no-referrer"` to default fetcher to circumvent this issue

cf. https://hacks.mozilla.org/2016/03/referrer-and-cache-control-apis-for-fetch/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.