Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix CORS header to allow preflight requests with authorization payload #1963

Merged
merged 1 commit into from
Dec 19, 2020
Merged

Fix CORS header to allow preflight requests with authorization payload #1963

merged 1 commit into from
Dec 19, 2020

Conversation

philippwaller
Copy link
Contributor

Due to the introduction of the oAuth authorization layer, the CORS filter for preflight requests needs to be adapted. Currently, pre flight requests with an authorization header are rejected by the API.
image
This pull request corrects this behaviour by adding the value "Authorization" to the "Access-Control-Allow-Headers“.

@kaikreuzer: If it's not too late, this fix might be interesting for the stable release.

…orization payload

Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
@kaikreuzer kaikreuzer added rebuild Triggers the Jenkins PR build and removed rebuild Triggers the Jenkins PR build labels Dec 19, 2020
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Too late for RC2, but it should be little risk to add it and if it solves an issue here, let's get still get it in.

@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of the Core label Dec 19, 2020
@kaikreuzer kaikreuzer added this to the 3.0 milestone Dec 19, 2020
@kaikreuzer kaikreuzer merged commit 090b889 into openhab:master Dec 19, 2020
@philippwaller philippwaller deleted the fix-cors-auth branch December 19, 2020 15:52
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
…orization payload (openhab#1963)

Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
GitOrigin-RevId: 090b889
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants