Skip to content

Allow GraphQL requests without CSRF token

Bob Van Landuyt requested to merge reprazent/gitlab-ce:bvl-graphql-csrf into master

What does this MR do?

With this we allow authentication using a session or using personal access token.

Authentication using a session, and CSRF token makes it easy to play with GraphQL from the Graphiql endpoint we expose.

But we cannot enforce CSRF validity, otherwise authentication for regular API clients would fail when they use personal access tokens to authenticate.

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57237

Does this MR meet the acceptance criteria?

Edited by Bob Van Landuyt

Merge request reports