Add version to graphql requests
What does this MR do and why?
Adding GraphQL version to authenticated frontend requests, and then checking in the GraphQL controller if this matches the backend node.
Related to #378069
How to set up and validate locally
- Load up your inspector (F12, etc)
- Go to some issue board on some project (e.g. https://gdk.localhost:3443/gitlab-org/gitlab-shell/-/boards)
- On a graphql request (under XHR) the version will be there under
version
in the request header
GraphQL + Authenticated (header present)
GraphQL + Unauthenticated (no header)
Non-GraphQL + Authenticated (no header)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by charlie ablett