From d8c2da09d17c5e279175f851560569605fc03031 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 4 Jun 2016 11:15:30 -0400 Subject: [PATCH] Ban inline scripts in CSP --- assets/javascripts/views/pages/jquery.coffee | 3 ++- lib/app.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/views/pages/jquery.coffee b/assets/javascripts/views/pages/jquery.coffee index 723a13f4..a8d6cd1f 100644 --- a/assets/javascripts/views/pages/jquery.coffee +++ b/assets/javascripts/views/pages/jquery.coffee @@ -45,7 +45,7 @@ class app.views.JqueryPage extends app.views.BasePage fixIframeSource: (source) -> source = source.replace '"/resources/', '"https://api.jquery.com/resources/' # attr(), keydown() - source.replace '', """ + source = source.replace '', """