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

Update CORS Plugin Documentation for Global Plugin #3921

Open
2 tasks done
axelsean opened this issue May 10, 2022 · 1 comment
Open
2 tasks done

Update CORS Plugin Documentation for Global Plugin #3921

axelsean opened this issue May 10, 2022 · 1 comment

Comments

@axelsean
Copy link

axelsean commented May 10, 2022

Where is the problem?

https://docs.konghq.com/hub/kong-inc/cors/

What happened?

The global definition is not correct, specifically:

  • If the upstream service does not have OPTIONS defined as a method then a 404 error is always returned (this seems like a bug in the implementation also)

See also:

What did you expect to happen?

Needs text on how this needs to actually find a route, which implies a global OPTIONS route

Needs an example of the default route - see second link

Code of Conduct and Community Expectations

  • I agree to follow this project's Code of Conduct
  • I agree to abide by the Community Expectations
@axelsean
Copy link
Author

axelsean commented May 13, 2022

This worked for me:

kong-global-cors.yaml.txt

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

No branches or pull requests

1 participant