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

Document CORS safelist exceptions #621

Merged
merged 5 commits into from
Nov 21, 2017
Merged
Changes from 1 commit
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
22 changes: 20 additions & 2 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ url: https://tools.ietf.org/html/rfc7234#section-1.2.1;text:delta-seconds;type:d
"publisher": "US-CERT",
"href": "https://www.kb.cert.org/vuls/id/150227",
"title": "HTTP proxy default configurations allow arbitrary TCP connections."
},
"REPORTING": {
"authors": ["Ilya Grigorik", "Mike West"],
"href": "https://wicg.github.io/reporting/",
"title": "Reporting API"
},
"EXPECT-CT": {
"authors": [
"Emily Stark"
],
"href": "https://tools.ietf.org/html/draft-ietf-httpbis-expect-ct-02",
"publisher": "IETF",
"title": "Expect-CT Extension for HTTP"
},
"OCSP": {
"aliasOf": "RFC2560"
}
}
</pre>
Expand Down Expand Up @@ -2236,8 +2252,10 @@ Access-Control-Allow-Credentials: true</pre>
triggered by web content but whose headers and bodies can be only minimally controlled by the web
content. Therefore, servers should expect cross-origin web content to be allowed to trigger
non-preflighted requests with the following non-safelisted `<code>Content-Type</code>` header
values: `<code>application/csp-report</code>`, `<code>application/report</code>`,
`<code>application/expect-ct-report+json</code>`, and `<code>application/ocsp-request</code>`.
values:
`<code>application/csp-report</code>` [[CSP]], `<code>application/report</code>` [[REPORTING]],
`<code>application/expect-ct-report+json</code>` [[EXPECT-CT]],
`<code>application/xss-auditor-report</code>`, and `<code>application/ocsp-request</code>` [[OCSP]].

<p>Specifications should avoid introducing new exceptions and should only do so with careful
consideration for the security consequences. New exceptions can be proposed by
Expand Down