| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/perl -wT |
| 2 use strict; |
| 3 |
| 4 print "Content-Type: text/html\n"; |
| 5 print "Access-Control-Allow-Credentials: true\n"; |
| 6 print "Access-Control-Allow-Origin: http://127.0.0.1:8000\n\n"; |
| 7 |
| 8 print <<EOF |
| 9 <!DOCTYPE html> |
| 10 <html> |
| 11 <head> |
| 12 <script src="http://localhost:8080/htmlimports/resources/external-script.js"></s
cript> |
| 13 <script nonce="hello" src="http://localhost:8080/htmlimports/resources/external-
script-with-nonce.js"></script> |
| 14 <script> |
| 15 document.inlineScriptHasRun = true; |
| 16 eval("document.evalFromInlineHasRun = true;"); |
| 17 </script> |
| 18 |
| 19 <script nonce="hello"> |
| 20 document.inlineScriptWithNonceHasRun = true; |
| 21 eval("document.evalFromInlineWithNonceHasRun = true;"); |
| 22 </script> |
| 23 </head> |
| 24 </html> |
| 25 EOF |
| OLD | NEW |