Skip to content

Commit 1a2ee15

Browse files
authored
Merge pull request #2 from explainers-by-googlers/update-examples
Update the examples in the explainer
2 parents 671892e + 1c456c8 commit 1a2ee15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Currently, if the CSP header is set, scripts loaded via script-src need to be al
113113

114114

115115
```
116-
Content-Security-Policy: script-src 'url-hashes' 'sha256-SHA256("https://example.com/script.js")';
116+
Content-Security-Policy: script-src-v2 'url-hashes' 'sha256-SHA256("https://example.com/script.js")';
117117
<script src="https://example.com/script.js"></script>
118118
```
119119

@@ -122,7 +122,7 @@ or
122122

123123

124124
```
125-
Content-Security-Policy: script-src 'url-hashes' 'sha256-SHA256("script.js")';
125+
Content-Security-Policy: script-src-v2 'url-hashes' 'sha256-SHA256("script.js")';
126126
<script src="script.js"></script>
127127
```
128128

0 commit comments

Comments
 (0)