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

Fix cors develop #10720

Merged
merged 2 commits into from
Feb 23, 2022
Merged

Fix cors develop #10720

merged 2 commits into from
Feb 23, 2022

Conversation

uberbrady
Copy link
Collaborator

CORS hasn't been working for a little bit - and, it turns out, the newer version that we use in later Laravel versions has some incompatible changes in there.

The biggest and most obvious of which is that the new HandleCors class no longer works as a 'group middleware' - only as 'global middleware'. It instead prefers that you use the paths argument to limit where it can be used.

So this (somewhat bedgrudingly) does exactly that.

Copy link
Owner

@snipe snipe left a comment

Choose a reason for hiding this comment

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

LGTM

@snipe snipe merged commit 292bf21 into snipe:develop Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants