Skip to content

Conversation

@drslebedev
Copy link
Contributor

This PR fixes CORS preflight handling for the REST server.

Previously, browser preflight OPTIONS requests could be mis-parsed and end up on the normal request path, which caused CORS failures even though regular responses already included Access-Control-Allow-Origin: *. Now OPTIONS is detected and answered with 204 + CORS headers.

Parse OPTIONS requests and reply with 204 + CORS headers

Signed-off-by: drslebedev <dr.s.lebedev@gmail.com>
@drslebedev drslebedev temporarily deployed to configure coverage January 21, 2026 14:58 — with GitHub Actions Inactive
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
34.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@drslebedev drslebedev merged commit bfbb343 into main Jan 21, 2026
14 of 16 checks passed
@drslebedev drslebedev deleted the cors_preflight branch January 21, 2026 15:39
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.

3 participants