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

Clarify that request.origin cannot be "client" at certain points #1776

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

Conversation

simonwuelker
Copy link

@simonwuelker simonwuelker commented Sep 24, 2024

Previously, the code implicitly guaranteed that a requests origin could not be "client" after Step 10 of
https://fetch.spec.whatwg.org/#concept-fetch.

Other algorithms then simply relied on this fact. This is confusing. Instead, we now explicitly assert that the origin is not client whereever we need it.

This closes #1773


(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

Previously, the code implicitly guaranteed that a requests
origin could not be "client" after Step 10 of
https://fetch.spec.whatwg.org/#concept-fetch.

Other algorithms then simply relied on this fact. This is
confusing. Instead, we now explicitly assert that the origin
is not client whereever we need it.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Unclear how to serialize request origin "client"
1 participant