Skip to content

Make CORS support opt-in#44

Open
calvinrp wants to merge 1 commit intoantirez:mainfrom
calvinrp:codex/optional-cors
Open

Make CORS support opt-in#44
calvinrp wants to merge 1 commit intoantirez:mainfrom
calvinrp:codex/optional-cors

Conversation

@calvinrp
Copy link
Copy Markdown

@calvinrp calvinrp commented May 9, 2026

Summary

  • add a --cors server flag for permissive browser CORS support
  • gate CORS response headers and OPTIONS preflight handling behind that flag
  • document the flag and cover enabled/disabled behavior in server unit tests

Validation

  • make ds4_test
  • ./ds4_test --server
  • make ds4-server
  • git diff --check
  • ./ds4-server --help | grep -E -- '--cors|CORS'

Addreses #20

@calvinrp calvinrp force-pushed the codex/optional-cors branch from b9c723d to 5c0b1ea Compare May 9, 2026 23:30
@calvinrp calvinrp changed the title [codex] Make CORS support opt-in Make CORS support opt-in May 10, 2026
@calvinrp calvinrp marked this pull request as ready for review May 10, 2026 00:35
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