]> cat aescling's git repositories - mastodon.git/commitdiff
tighten csp
authorbeatrix-bitrot <beatrix.bitrot@gmail.com>
Sat, 6 Jan 2018 18:49:03 +0000 (18:49 +0000)
committerbeatrix-bitrot <beatrix.bitrot@gmail.com>
Sat, 6 Jan 2018 18:49:03 +0000 (18:49 +0000)
config/environments/production.rb

index f7cb4b08a08eba8c6f0162e3f21590e6034d9ffc..a691ef873e3890ca44f918ef7012dcd90619f80d 100644 (file)
@@ -95,7 +95,7 @@ Rails.application.configure do
     'X-Frame-Options'         => 'DENY',
     'X-Content-Type-Options'  => 'nosniff',
     'X-XSS-Protection'        => '1; mode=block',
-    'Content-Security-Policy' => "frame-ancestors 'none'; object-src 'none'; script-src 'self' https://dev-static.glitch.social 'unsafe-inline'; base-uri 'none';" , 
+    'Content-Security-Policy' => "frame-ancestors 'none'; object-src 'none'; script-src 'self' https://dev-static.glitch.social ; base-uri 'none';" , 
     'Referrer-Policy'         => 'no-referrer, strict-origin-when-cross-origin',
     'Strict-Transport-Security' => 'max-age=63072000; includeSubDomains; preload',
     'X-Clacks-Overhead' => 'GNU Natalie Nguyen'