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

Use request's policy container for checks #494

Merged
merged 1 commit into from
May 12, 2021

Conversation

antosart
Copy link
Member

@antosart antosart commented May 6, 2021

This change depends on whatwg/fetch#1231 and whatwg/html#6659 which add and populate a request's policy container. This change relies on the request's policy container CSP list (instead of the request's client's environment setting object's CSP list) for the checks. This enforces consistency, since the the request's client's environment setting object's CSP list can change during the lifetime of an asynchronous fetch (for example, when following redirects, or when doing a response check), while the request's policy container CSP list is a snapshot at request's creation time.

@antosart
Copy link
Member Author

antosart commented May 6, 2021

This addresses whatwg/fetch#832

@antosart antosart requested a review from annevk May 6, 2021 08:47
annevk pushed a commit to whatwg/fetch that referenced this pull request May 10, 2021
This snapshots policies when a request is created in order to have them available (and be immutable) for the lifetime of the fetch algorithm. Together with w3c/webappsec-csp#494 this ends up fixing #832.
@antosart antosart merged commit 52fd711 into w3c:main May 12, 2021
@antosart antosart deleted the use-request-policy-container branch May 12, 2021 07:48
github-actions bot added a commit that referenced this pull request May 12, 2021
SHA: 52fd711
Reason: push, by @antosart

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants