Add gitlab version header to response
What does this MR do and why?
Adds a gitlab-version
to response via middleware.
The goal is to allow API calls (initially GraphQL) to determine if a schema mismatch is due to a version discrepancy.
See #378069 (comment 1408724835) and #352455 (comment 1132346448) for details.
Screenshots or screen recordings
No user-facing changes
How to set up and validate locally
- Open Inspector in browser, network tab
- Open any page on GitLab
- Look for version header.
Authenticated | Unauthenticated |
---|---|
![]() |
![]() |
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.
Related to #378069
Edited by charlie ablett