Skip to content

Conversation

@mathieucarbou
Copy link
Member

When credential flag is set to true, origin cannot be set to * (browser contraint).

So we mimic the same behavior by answering back in Access-Control-Allow-Origin header the Origin value, but only if the user set origin to * in the CORS middleware settings.

Ref: #294

Fix #294.

When credential flag is set to true, origin cannot be set to * (browser contraint).

So we mimic the same behavior by answering back in `Access-Control-Allow-Origin` header the `Origin `value, but only if the user set origin to * in the CORS middleware settings.

Ref: #294

Fix #294.
@mathieucarbou mathieucarbou merged commit 4b3e81a into main Sep 27, 2025
35 checks passed
@mathieucarbou mathieucarbou deleted the issues/294 branch September 27, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CORS settings in default CORS middleware

3 participants