Skip to content

feat: Add CORS policy for GraphQL subscriptions#1272

Draft
osmanhadzic wants to merge 1 commit intoedgehog-device-manager:mainfrom
osmanhadzic:feat/cors-policy-sub
Draft

feat: Add CORS policy for GraphQL subscriptions#1272
osmanhadzic wants to merge 1 commit intoedgehog-device-manager:mainfrom
osmanhadzic:feat/cors-policy-sub

Conversation

@osmanhadzic
Copy link
Contributor

CORS (Cross-Origin Resource Sharing) policy specifically for GraphQL subscriptions to ensure secure and controlled access from allowed origins. It also adds automated tests to verify the correct configuration and behavior of the CORS policy.

Testing:

  • Verified that subscription requests from allowed origins succeed.
  • Verified that requests from disallowed origins are blocked.
  • Automated tests run as part of CI to ensure consistent behavior.

Change Title

Checklist

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added or updated documentation (if appropriate)

Further Comments (optional)

Screenshots / Demos (optional)

- Add CORS policy for GraphQL subscriptions
- Add tests for CORS policy configuration

Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
@osmanhadzic osmanhadzic requested a review from lusergit March 6, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant