Skip to content

Commit ac579a2

Browse files
committed
Add CSP comment to the inline script
1 parent a4b8ff8 commit ac579a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
{{content-for 'body'}}
3030

31+
<!-- if you change the following inline script make sure to change the CSP settings of nginx! -->
3132
<script>window.onerror=function(){document.body.innerHTML='<p style="width: 70%;background: var(--main-bg);padding: 10px;">Sorry, it looks like we were not able to load the page. Please make sure your network connection works and you are using an up-to-date browser. If the issue persists, please visit our <a href="https://github.com/rust-lang/crates.io/issues/new/choose">issue tracker</a> to report the problem.</p>'}</script>
3233
<script src="{{rootURL}}assets/vendor.js"></script>
3334
<script src="{{rootURL}}assets/cargo.js"></script>

0 commit comments

Comments
 (0)