fix: add CORS headers to GraphQL endpoint#12582
Conversation
Greptile SummaryThis PR fixes missing CORS and security headers on the
Confidence Score: 5/5The change is a one-line group registration addition with no side effects outside of the CORS/security-headers middleware being applied to GraphQL requests. The fix is minimal and correct: the same init hook already runs cleanly for 'api' and 'web' groups, the graphql routes use the same $cors and $originValidator dependencies, and the global OPTIONS handler already covered preflight. There is no logic altered, only a missing group name added. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix: add CORS headers to GraphQL endpoin..." | Re-trigger Greptile |
What problem does this PR solve?
GraphQL endpoint was missing CORS headers because the CORS init hook was not registered for the 'graphql' group.
Changes
Based on #12526 by @deepshekhardas