Переглянути джерело

Merge pull request #334 from electron/add-csp

security: add csp
John Kleinschmidt 6 роки тому
батько
коміт
43e687fbc1
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      index.html

+ 3 - 0
index.html

@@ -2,6 +2,9 @@
 <html>
   <head>
     <meta charset="UTF-8">
+    <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
+    <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
+    <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
     <title>Hello World!</title>
   </head>
   <body>