Browse Source

Merge pull request #334 from electron/add-csp

security: add csp
main
John Kleinschmidt 6 years ago
committed by GitHub
parent
commit
43e687fbc1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      index.html

3
index.html

@ -2,6 +2,9 @@
<html> <html>
<head> <head>
<meta charset="UTF-8"> <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> <title>Hello World!</title>
</head> </head>
<body> <body>

Loading…
Cancel
Save