Debian Codegraph @

demo/csp.html

raw
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6 <meta http-equiv="Content-Security-Policy" content="
7 style-src 'self' ;
8 img-src 'self' ;
9 script-src 'self' 'nonce-bootstrap-script';
10 worker-src 'self' blob:
11 ">
12 <title>Editor</title>
13 </head>
14 <body>
15 <pre id="editor"></pre>
16
17 <script src="../build/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
18 <link rel="stylesheet" href="../build/css/ace.css">
19 <link rel="stylesheet" href="../build/css/theme/tomorrow_night_eighties.css">
20
21 <script nonce="bootstrap-script">
22
23 ace.config.set("useStrictCSP", true);
24
25 var editor = ace.edit("editor", {
26 theme: "ace/theme/tomorrow_night_eighties",
27 mode: "ace/mode/html",
28 maxLines: 30,
29 wrap: true,
30 autoScrollEditorIntoView: true
31 });
32
33 </script>
34
35 <script src="./show_own_source.js"></script>
36
37 </body>
38 </html>