Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: The CORS middleware will create the response for an OPTIONS request without passing the request down through the process chain #4

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

mficzel
Copy link
Member

@mficzel mficzel commented Dec 10, 2024

Without this change the preflight lead to a 404 as the OPTIONS request could not be routed which yielded a 404 exception.

@mficzel mficzel force-pushed the bugfix/handlePreflightInCorsMiddleware branch 3 times, most recently from 56d31eb to 5437de6 Compare December 10, 2024 10:25
…equest without passing the request down through the process chain

Without this change the preflight lead to a 404 as the OPTIONS request could not be routed which yielded a 404 exception.
@mficzel mficzel force-pushed the bugfix/handlePreflightInCorsMiddleware branch from 5437de6 to 10e5bf8 Compare December 10, 2024 10:27
@mficzel mficzel requested a review from t-heuser December 10, 2024 10:27
Copy link
Collaborator

@t-heuser t-heuser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me (just one little question), thanks for the find and the fix!

Classes/Http/CorsHeaderMiddleware.php Show resolved Hide resolved
@t-heuser t-heuser merged commit 7212c85 into master Dec 11, 2024
2 checks passed
@t-heuser t-heuser deleted the bugfix/handlePreflightInCorsMiddleware branch December 11, 2024 10:23
@t-heuser
Copy link
Collaborator

@mficzel Merged and released :)

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.

2 participants