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
{{ message }}
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Spring Security enables CSRF protection by default and thus requires the CSRF token header on POST requests to the /graphql endpoint. If Spring Security is loaded and CSRF protection is not disabled, the /graphiql endpoint will get a 403 error when it tries to access the /graphql endpoint.
GraphiQLController should check the _csrf attribute in the request and, if it exists, use the header name and the token it contains to add a header to the headers collection used by the fetcher function supplied to GraphiQL.
The text was updated successfully, but these errors were encountered:
BlasiusSecundus
added a commit
to BlasiusSecundus/graphql-spring-boot
that referenced
this issue
Jun 2, 2019
Spring Security enables CSRF protection by default and thus requires the CSRF token header on POST requests to the
/graphql
endpoint. If Spring Security is loaded and CSRF protection is not disabled, the/graphiql
endpoint will get a 403 error when it tries to access the/graphql
endpoint.GraphiQLController
should check the_csrf
attribute in the request and, if it exists, use the header name and the token it contains to add a header to the headers collection used by the fetcher function supplied to GraphiQL.The text was updated successfully, but these errors were encountered: