Skip to content

Conversation

stuartwdouglas
Copy link
Collaborator

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

//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