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

Removed OPTION omission for CORS #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maverick64
Copy link
Contributor

This had to be done for https://confluentinc.atlassian.net/browse/ESCALATION-3168.
When Customer has RBAC/CORS enabled together, anonymous requests run into issue because of jetty/OAuthBearerAuthenticator.
We came to conclusion to get it fixed in rest-utils.
This change will require all HTTP methods (including OPTION) to require authentication if it was enabled.

@ghost
Copy link

ghost commented Jul 8, 2020

@confluentinc It looks like @maverick64 just signed our Contributor License Agreement. 👍

Always at your service,

clabot

Copy link
Member

@rayokota rayokota left a comment

Choose a reason for hiding this comment

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

LGTM

@maverick64 maverick64 changed the base branch from master to 5.3.x July 9, 2020 20:39
@maverick64 maverick64 changed the base branch from 5.3.x to master July 9, 2020 20:40
Copy link
Member

@xvrl xvrl left a comment

Choose a reason for hiding this comment

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

this will likely break browser CORS preflight requests, which require OPTIONS methods to not authenticate.

@maverick64
Copy link
Contributor Author

this will likely break browser CORS preflight requests, which require OPTIONS methods to not authenticate.

Added this flag through which we can disable preflight option check for the servers. The components can just add this flag to true and it will behave as before.
access.control.skip.options

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.

None yet

4 participants