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

Remove same-origin blanket enforcement #28

Merged
merged 1 commit into from Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 3 additions & 9 deletions index.src.html
Expand Up @@ -1095,17 +1095,11 @@ <h3 id="origin-allowed" algorithm>
1. If |response|'s <a for="response">url</a>'s <a for="url">scheme</a> is
a <a>local scheme</a>, return "`Allowed`".

Note: The embedder has direct access to same-origin responses, so if it
wishes to enforce a policy on that same-origin response, we simply do so.

2. If |response|'s <a for="response">url</a>'s <a for="url">origin</a> is the
same as |request|'s <a for="request">origin</a>, return "`Allowed`".

Note: Likewise, <a>local scheme</a> responses already inherit their policy
Note: The <a>local scheme</a> responses already inherit their policy
from the embedder, so we allow the embedder to tighten that policy via this
embedding mechanism.

3. If |response|'s <a for="response">header list</a> has a header named
2. If |response|'s <a for="response">header list</a> has a header named
<a http-header>`Allow-CSP-From`</a> (|header|):

1. If |header|'s value is "`*`", return "`Allowed`".
Expand All @@ -1114,7 +1108,7 @@ <h3 id="origin-allowed" algorithm>
<a lt="ASCII serialization of an origin">serialized</a> and <a>UTF-8
encoded</a> is |header|'s value, return "`Allowed`".

4. Return "`Not Allowed`".
3. Return "`Not Allowed`".

<h4 id="intersection-source-expressions" algorithm>
What is an intersection of two expressions matching
Expand Down