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): all origins could pass when allow_origins_by_metadata is set #10948

Conversation

theweakgod
Copy link
Contributor

Description

Fixes #10946

Resolved the issue where all origins could pass through when allow_origins_by_metadata was set and allow_origins was set to the default value "*".

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@theweakgod theweakgod changed the title Fix: add cors allow_origins * invalid while allow_origins_by_metadata is set fix: add cors allow_origins * invalid while allow_origins_by_metadata is set Feb 20, 2024
@monkeyDluffy6017
Copy link
Contributor

Let's discuss in the issue

@theweakgod
Copy link
Contributor Author

Let's discuss in the issue

👌

@sheharyaar
Copy link
Contributor

Tested it locally, Works as intended, LGTM.

@monkeyDluffy6017 monkeyDluffy6017 changed the title fix: add cors allow_origins * invalid while allow_origins_by_metadata is set fix(cors): all origins could pass when allow_origins_by_metadata is set Feb 26, 2024
@monkeyDluffy6017 monkeyDluffy6017 merged commit bc000a9 into apache:master Feb 26, 2024
45 checks passed
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.

bug: allow_origins_by_metadata does not work without allow_origins
5 participants