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

fix: Undo authorization on OPTIONS requests #1251

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Conversation

joachimvh
Copy link
Member

📁 Related issues

Closes #1246

✍️ Description

Reverts ad3edcf because of the reasons described in #1246 (comment)

Copy link
Member

@RubenVerborgh RubenVerborgh left a comment

Choose a reason for hiding this comment

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

Good stuff. Release notes still ok?

[ 'OPTIONS', 'C/R', [], undefined, '', '', 401, 401 ],
[ 'OPTIONS', 'C/R', [], [ AM.read ], '', '', 204, 404 ],
[ 'OPTIONS', 'C/R', [ AM.read ], undefined, '', '', 204, 404 ],
// No authorization headers are sent in an OPTIONS request making it impossible to grant permission.
Copy link
Member

Choose a reason for hiding this comment

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

And let's also quote https://fetch.spec.whatwg.org/#cors-preflight-fetch that an OK response code is needed for preflight requests.

@joachimvh
Copy link
Member Author

Good stuff. Release notes still ok?

Didn't put any of this in the release notes since it's mostly a bugfix and not a very relevant feature.

@joachimvh joachimvh merged commit 97e600b into versions/4.0.0 Apr 4, 2022
@joachimvh joachimvh deleted the fix/cors branch April 4, 2022 11:35
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

2 participants