|
7 | 7 | <link href="https://www.w3.org/StyleSheets/TR/2021/W3C-WD" rel="stylesheet"> |
8 | 8 | <meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator"> |
9 | 9 | <link href="https://www.w3.org/TR/CSP3/" rel="canonical"> |
10 | | - <meta content="ce17e1058fd63fd0b03d114951b9aaaf3f24c767" name="document-revision"> |
| 10 | + <meta content="efd28c1d9f9a98298c59dddacfc7b9d1b3c43c2f" name="document-revision"> |
11 | 11 | <style> |
12 | 12 | ul.toc ul ul ul { |
13 | 13 | margin: 0 0 0 2em; |
|
702 | 702 | <div class="head"> |
703 | 703 | <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p> |
704 | 704 | <h1>Content Security Policy Level 3</h1> |
705 | | - <p id="w3c-state"><a href="https://www.w3.org/standards/types#WD">W3C Working Draft</a>, <time class="dt-updated" datetime="2024-09-09">9 September 2024</time></p> |
| 705 | + <p id="w3c-state"><a href="https://www.w3.org/standards/types#WD">W3C Working Draft</a>, <time class="dt-updated" datetime="2024-10-14">14 October 2024</time></p> |
706 | 706 | <details open> |
707 | 707 | <summary>More details about this document</summary> |
708 | 708 | <div data-fill-with="spec-metadata"> |
709 | 709 | <dl> |
710 | 710 | <dt>This version: |
711 | | - <dd><a class="u-url" href="https://www.w3.org/TR/2024/WD-CSP3-20240909/">https://www.w3.org/TR/2024/WD-CSP3-20240909/</a> |
| 711 | + <dd><a class="u-url" href="https://www.w3.org/TR/2024/WD-CSP3-20241014/">https://www.w3.org/TR/2024/WD-CSP3-20241014/</a> |
712 | 712 | <dt>Latest published version: |
713 | 713 | <dd><a href="https://www.w3.org/TR/CSP3/">https://www.w3.org/TR/CSP3/</a> |
714 | 714 | <dt>Editor's Draft: |
@@ -4282,11 +4282,15 @@ <h4 class="heading settled algorithm" data-algorithm="Get the effective directiv |
4282 | 4282 | <p>If <var>request</var>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-initiator" id="ref-for-concept-request-initiator②">initiator</a> is "<code>prefetch</code>" or "<code>prerender</code>", |
4283 | 4283 | return <code>default-src</code>.</p> |
4284 | 4284 | <li data-md> |
4285 | | - <p>If <var>request</var>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-initiator" id="ref-for-concept-request-initiator③">initiator</a> is "<code>fetch</code>" or its <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-destination" id="ref-for-concept-request-destination⑥">destination</a> is "", return <code>connect-src</code>.</p> |
4286 | | - <li data-md> |
4287 | | - <p>Switch on <var>request</var>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-destination" id="ref-for-concept-request-destination⑦">destination</a>, and execute |
| 4285 | + <p>Switch on <var>request</var>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-destination" id="ref-for-concept-request-destination⑥">destination</a>, and execute |
4288 | 4286 | the associated steps:</p> |
4289 | 4287 | <dl> |
| 4288 | + <dt data-md>the empty string |
| 4289 | + <dd data-md> |
| 4290 | + <ol> |
| 4291 | + <li data-md> |
| 4292 | + <p>Return <code>connect-src</code>.</p> |
| 4293 | + </ol> |
4290 | 4294 | <dt data-md>"<code>manifest</code>" |
4291 | 4295 | <dd data-md> |
4292 | 4296 | <ol> |
@@ -5645,18 +5649,18 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N |
5645 | 5649 | <dt id="biblio-sri">[SRI] |
5646 | 5650 | <dd>Devdatta Akhawe; et al. <a href="https://www.w3.org/TR/SRI/"><cite>Subresource Integrity</cite></a>. 23 June 2016. REC. URL: <a href="https://www.w3.org/TR/SRI/">https://www.w3.org/TR/SRI/</a> |
5647 | 5651 | <dt id="biblio-trusted-types">[TRUSTED-TYPES] |
5648 | | - <dd>Krzysztof Kotowicz. <a href="https://www.w3.org/TR/trusted-types/"><cite>Trusted Types</cite></a>. 18 July 2024. WD. URL: <a href="https://www.w3.org/TR/trusted-types/">https://www.w3.org/TR/trusted-types/</a> |
| 5652 | + <dd>Krzysztof Kotowicz. <a href="https://www.w3.org/TR/trusted-types/"><cite>Trusted Types</cite></a>. 10 September 2024. WD. URL: <a href="https://www.w3.org/TR/trusted-types/">https://www.w3.org/TR/trusted-types/</a> |
5649 | 5653 | <dt id="biblio-url">[URL] |
5650 | 5654 | <dd>Anne van Kesteren. <a href="https://url.spec.whatwg.org/"><cite>URL Standard</cite></a>. Living Standard. URL: <a href="https://url.spec.whatwg.org/">https://url.spec.whatwg.org/</a> |
5651 | 5655 | <dt id="biblio-webidl">[WEBIDL] |
5652 | 5656 | <dd>Edgar Chen; Timothy Gu. <a href="https://webidl.spec.whatwg.org/"><cite>Web IDL Standard</cite></a>. Living Standard. URL: <a href="https://webidl.spec.whatwg.org/">https://webidl.spec.whatwg.org/</a> |
5653 | 5657 | <dt id="biblio-webrtc">[WEBRTC] |
5654 | | - <dd>Cullen Jennings; et al. <a href="https://www.w3.org/TR/webrtc/"><cite>WebRTC: Real-Time Communication in Browsers</cite></a>. 6 March 2023. REC. URL: <a href="https://www.w3.org/TR/webrtc/">https://www.w3.org/TR/webrtc/</a> |
| 5658 | + <dd>Cullen Jennings; et al. <a href="https://www.w3.org/TR/webrtc/"><cite>WebRTC: Real-Time Communication in Browsers</cite></a>. 8 October 2024. REC. URL: <a href="https://www.w3.org/TR/webrtc/">https://www.w3.org/TR/webrtc/</a> |
5655 | 5659 | </dl> |
5656 | 5660 | <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3> |
5657 | 5661 | <dl> |
5658 | 5662 | <dt id="biblio-appmanifest">[APPMANIFEST] |
5659 | | - <dd>Marcos Caceres; et al. <a href="https://www.w3.org/TR/appmanifest/"><cite>Web Application Manifest</cite></a>. 5 September 2024. WD. URL: <a href="https://www.w3.org/TR/appmanifest/">https://www.w3.org/TR/appmanifest/</a> |
| 5663 | + <dd>Marcos Caceres; et al. <a href="https://www.w3.org/TR/appmanifest/"><cite>Web Application Manifest</cite></a>. 11 October 2024. WD. URL: <a href="https://www.w3.org/TR/appmanifest/">https://www.w3.org/TR/appmanifest/</a> |
5660 | 5664 | <dt id="biblio-beacon">[BEACON] |
5661 | 5665 | <dd>Ilya Grigorik; Alois Reitbauer. <a href="https://www.w3.org/TR/beacon/"><cite>Beacon</cite></a>. 3 August 2022. CR. URL: <a href="https://www.w3.org/TR/beacon/">https://www.w3.org/TR/beacon/</a> |
5662 | 5666 | <dt id="biblio-csp2">[CSP2] |
@@ -6107,13 +6111,13 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content |
6107 | 6111 | window.dfnpanelData['902380f7'] = {"dfnID": "902380f7", "url": "https://fetch.spec.whatwg.org/#concept-request-credentials-mode", "dfnText": "credentials mode", "refSections": [{"refs": [{"id": "ref-for-concept-request-credentials-mode"}], "title": "5.5. \n Report a violation\n "}], "external": true}; |
6108 | 6112 | window.dfnpanelData['784f01de'] = {"dfnID": "784f01de", "url": "https://fetch.spec.whatwg.org/#concept-request-nonce-metadata", "dfnText": "cryptographic nonce metadata", "refSections": [{"refs": [{"id": "ref-for-concept-request-nonce-metadata"}], "title": "4.2. \n Integration with HTML\n "}, {"refs": [{"id": "ref-for-concept-request-nonce-metadata\u2460"}], "title": "6.1.13.1. \n style-src Pre-request Check\n "}, {"refs": [{"id": "ref-for-concept-request-nonce-metadata\u2461"}], "title": "6.1.13.2. \n style-src Post-request Check\n "}, {"refs": [{"id": "ref-for-concept-request-nonce-metadata\u2462"}], "title": "6.1.14.1. \n style-src-elem Pre-request Check\n "}, {"refs": [{"id": "ref-for-concept-request-nonce-metadata\u2463"}], "title": "6.1.14.2. \n style-src-elem Post-request Check\n "}, {"refs": [{"id": "ref-for-concept-request-nonce-metadata\u2464"}], "title": "6.7.1.1. \n Script directives pre-request check\n "}, {"refs": [{"id": "ref-for-concept-request-nonce-metadata\u2465"}], "title": "6.7.1.2. \n Script directives post-request check\n "}, {"refs": [{"id": "ref-for-concept-request-nonce-metadata\u2466"}], "title": "6.7.2.3. \n Does nonce match source list?\n "}], "external": true}; |
6109 | 6113 | window.dfnpanelData['3f2ca4de'] = {"dfnID": "3f2ca4de", "url": "https://fetch.spec.whatwg.org/#concept-request-current-url", "dfnText": "current url", "refSections": [{"refs": [{"id": "ref-for-concept-request-current-url"}], "title": "2.4.2. \n Create a violation object for request, and policy.\n "}, {"refs": [{"id": "ref-for-concept-request-current-url\u2460"}, {"id": "ref-for-concept-request-current-url\u2461"}], "title": "4.2.4. \n Should navigation request of type be blocked\n by Content Security Policy?\n "}, {"refs": [{"id": "ref-for-concept-request-current-url\u2462"}], "title": "6.7.2.5. \n Does request match source list?\n "}], "external": true}; |
6110 | | -window.dfnpanelData['3ae34c95'] = {"dfnID": "3ae34c95", "url": "https://fetch.spec.whatwg.org/#concept-request-destination", "dfnText": "destination", "refSections": [{"refs": [{"id": "ref-for-concept-request-destination"}], "title": "5.5. \n Report a violation\n "}, {"refs": [{"id": "ref-for-concept-request-destination\u2460"}, {"id": "ref-for-concept-request-destination\u2461"}], "title": "6.1.1. child-src"}, {"refs": [{"id": "ref-for-concept-request-destination\u2462"}], "title": "6.1.6. img-src"}, {"refs": [{"id": "ref-for-concept-request-destination\u2463"}], "title": "6.7.1.1. \n Script directives pre-request check\n "}, {"refs": [{"id": "ref-for-concept-request-destination\u2464"}], "title": "6.7.1.2. \n Script directives post-request check\n "}, {"refs": [{"id": "ref-for-concept-request-destination\u2465"}, {"id": "ref-for-concept-request-destination\u2466"}], "title": "6.8.1. \n Get the effective directive for request\n "}], "external": true}; |
| 6114 | +window.dfnpanelData['3ae34c95'] = {"dfnID": "3ae34c95", "url": "https://fetch.spec.whatwg.org/#concept-request-destination", "dfnText": "destination", "refSections": [{"refs": [{"id": "ref-for-concept-request-destination"}], "title": "5.5. \n Report a violation\n "}, {"refs": [{"id": "ref-for-concept-request-destination\u2460"}, {"id": "ref-for-concept-request-destination\u2461"}], "title": "6.1.1. child-src"}, {"refs": [{"id": "ref-for-concept-request-destination\u2462"}], "title": "6.1.6. img-src"}, {"refs": [{"id": "ref-for-concept-request-destination\u2463"}], "title": "6.7.1.1. \n Script directives pre-request check\n "}, {"refs": [{"id": "ref-for-concept-request-destination\u2464"}], "title": "6.7.1.2. \n Script directives post-request check\n "}, {"refs": [{"id": "ref-for-concept-request-destination\u2465"}], "title": "6.8.1. \n Get the effective directive for request\n "}], "external": true}; |
6111 | 6115 | window.dfnpanelData['3be1d4ac'] = {"dfnID": "3be1d4ac", "url": "https://fetch.spec.whatwg.org/#extract-header-list-values", "dfnText": "extracting header list values", "refSections": [{"refs": [{"id": "ref-for-extract-header-list-values"}, {"id": "ref-for-extract-header-list-values\u2460"}], "title": "2.2.3. \n Parse response\u2019s Content Security Policies\n "}], "external": true}; |
6112 | 6116 | window.dfnpanelData['a33db89a'] = {"dfnID": "a33db89a", "url": "https://fetch.spec.whatwg.org/#concept-fetch", "dfnText": "fetch", "refSections": [{"refs": [{"id": "ref-for-concept-fetch"}], "title": "5.5. \n Report a violation\n "}], "external": true}; |
6113 | 6117 | window.dfnpanelData['6ee0eab1'] = {"dfnID": "6ee0eab1", "url": "https://fetch.spec.whatwg.org/#concept-request-header-list", "dfnText": "header list (for request)", "refSections": [{"refs": [{"id": "ref-for-concept-request-header-list"}], "title": "5.5. \n Report a violation\n "}], "external": true}; |
6114 | 6118 | window.dfnpanelData['f7b00a8b'] = {"dfnID": "f7b00a8b", "url": "https://fetch.spec.whatwg.org/#concept-response-header-list", "dfnText": "header list (for response)", "refSections": [{"refs": [{"id": "ref-for-concept-response-header-list"}, {"id": "ref-for-concept-response-header-list\u2460"}], "title": "2.2.3. \n Parse response\u2019s Content Security Policies\n "}], "external": true}; |
6115 | 6119 | window.dfnpanelData['eb62573b'] = {"dfnID": "eb62573b", "url": "https://fetch.spec.whatwg.org/#http-scheme", "dfnText": "http(s) scheme", "refSections": [{"refs": [{"id": "ref-for-http-scheme"}, {"id": "ref-for-http-scheme\u2460"}], "title": "1.3. Changes from Level 2"}, {"refs": [{"id": "ref-for-http-scheme\u2461"}], "title": "5.4. Strip URL for use in reports"}, {"refs": [{"id": "ref-for-http-scheme\u2462"}, {"id": "ref-for-http-scheme\u2463"}], "title": "6.7.2.8. \n Does url match expression in origin with redirect count?\n "}], "external": true}; |
6116 | | -window.dfnpanelData['fa4ea124'] = {"dfnID": "fa4ea124", "url": "https://fetch.spec.whatwg.org/#concept-request-initiator", "dfnText": "initiator", "refSections": [{"refs": [{"id": "ref-for-concept-request-initiator"}], "title": "5.5. \n Report a violation\n "}, {"refs": [{"id": "ref-for-concept-request-initiator\u2460"}], "title": "6.7.2.1. \n Does request violate policy?\n "}, {"refs": [{"id": "ref-for-concept-request-initiator\u2461"}, {"id": "ref-for-concept-request-initiator\u2462"}], "title": "6.8.1. \n Get the effective directive for request\n "}], "external": true}; |
| 6120 | +window.dfnpanelData['fa4ea124'] = {"dfnID": "fa4ea124", "url": "https://fetch.spec.whatwg.org/#concept-request-initiator", "dfnText": "initiator", "refSections": [{"refs": [{"id": "ref-for-concept-request-initiator"}], "title": "5.5. \n Report a violation\n "}, {"refs": [{"id": "ref-for-concept-request-initiator\u2460"}], "title": "6.7.2.1. \n Does request violate policy?\n "}, {"refs": [{"id": "ref-for-concept-request-initiator\u2461"}], "title": "6.8.1. \n Get the effective directive for request\n "}], "external": true}; |
6117 | 6121 | window.dfnpanelData['d79a826f'] = {"dfnID": "d79a826f", "url": "https://fetch.spec.whatwg.org/#concept-request-integrity-metadata", "dfnText": "integrity metadata", "refSections": [{"refs": [{"id": "ref-for-concept-request-integrity-metadata"}], "title": "6.7.1.1. \n Script directives pre-request check\n "}, {"refs": [{"id": "ref-for-concept-request-integrity-metadata\u2460"}], "title": "6.7.1.2. \n Script directives post-request check\n "}, {"refs": [{"id": "ref-for-concept-request-integrity-metadata\u2461"}], "title": "6.7.2.4. \n Does integrity metadata match source list?\n "}], "external": true}; |
6118 | 6122 | window.dfnpanelData['8f26de31'] = {"dfnID": "8f26de31", "url": "https://fetch.spec.whatwg.org/#is-local", "dfnText": "is local", "refSections": [{"refs": [{"id": "ref-for-is-local"}], "title": "6.4.2.1. \n frame-ancestors Navigation Response Check\n "}], "external": true}; |
6119 | 6123 | window.dfnpanelData['8394d1b7'] = {"dfnID": "8394d1b7", "url": "https://fetch.spec.whatwg.org/#request-keepalive-flag", "dfnText": "keepalive", "refSections": [{"refs": [{"id": "ref-for-request-keepalive-flag"}], "title": "5.5. \n Report a violation\n "}], "external": true}; |
|
0 commit comments