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

CORS headers may not be sent on 403 #5056

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

stuartwdouglas
Copy link
Member

The authorization and CORS handlers had the same priority,
which means sometimes CORS headers would not be sent on a
403 response.

@stuartwdouglas stuartwdouglas added this to the 0.28.0 milestone Oct 30, 2019
@gastaldi gastaldi added component:new-http triage/waiting-for-ci Ready to merge when CI successfully finishes labels Oct 30, 2019
@stuartwdouglas stuartwdouglas added the kind/bug Something isn't working label Oct 30, 2019
@@ -11,6 +11,11 @@
*/
public final class FilterBuildItem extends MultiBuildItem {

//predefined system priorities
public static final int AUTHENTICATION = 200;
public static final int CORS = 150;
Copy link
Contributor

Choose a reason for hiding this comment

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

CORS should take precedence over AUTHENTICATION and AUTHORIZATION since the credentials may be wrong

The authorization and CORS handlers had the same priority,
which means sometimes CORS headers would not be sent on a
403 response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/waiting-for-ci Ready to merge when CI successfully finishes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants