Add content security policy to top level webview

This change hardens our webviews by adding a fairly restrictive csp to them. This CSP should only apply to the outer webview iframe, not to the inner iframe which is controlled by extensions
This commit is contained in:
Matt Bierner 2022-01-26 17:18:43 -08:00 committed by Benjamin Pasero
parent ced5c57c5c
commit db79f4c92a
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65

View file

@ -4,6 +4,8 @@
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; frame-src 'self'; style-src 'unsafe-inline';">
<!-- Disable pinch zooming -->
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">