Skip to content

Commit

Permalink
Fix CSP for Safari
Browse files Browse the repository at this point in the history
It seems Safari expands the HTML imports before applying the CSP.
Some links were breaking because of that.
  • Loading branch information
fortuna committed Jun 6, 2019
1 parent f759d4e commit 744a850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server_manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<script src="server_manager/web_app/main.js"></script>

<!-- TODO: Add Outline servers to connect-src on-demand (in addition to the DigitalOcean API). -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' outline:; connect-src https: 'self'; frame-src https://s3.amazonaws.com/outline-vpn/ ss:">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' outline: data:; connect-src https: 'self'; frame-src https://s3.amazonaws.com/outline-vpn/ ss:">

<style>
body {
Expand Down

0 comments on commit 744a850

Please sign in to comment.