From 1541e197b36dedff49a01eadd3f304ed5d84461b Mon Sep 17 00:00:00 2001
From: Matt Hobbs <matt@nooshu.com>
Date: Thu, 30 Jan 2020 17:39:10 +0000
Subject: [PATCH] Removed the crossorigin attribute and turned off SRI.

---
 app/views/layouts/application.html.erb | 8 ++++----
 app/views/shared/_webchat.html.erb     | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 5f47afccd..05bb46a0d 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -13,13 +13,13 @@
     <meta name="robots" content="noindex, nofollow">
   <% end %>
 
-  <%= stylesheet_link_tag "application", integrity: true, crossorigin: 'anonymous' %>
+  <%= stylesheet_link_tag "application", integrity: false %>
   <% if Rails.env.test? && params[:medium] == 'print' %>
-    <%= stylesheet_link_tag "print.css", :media => "screen", integrity: true, crossorigin: 'anonymous' %>
+    <%= stylesheet_link_tag "print.css", :media => "screen", integrity: false %>
   <% else %>
-    <%= stylesheet_link_tag "print.css", :media => "print", integrity: true, crossorigin: 'anonymous' %>
+    <%= stylesheet_link_tag "print.css", :media => "print", integrity: false %>
   <% end %>
-  <%= javascript_include_tag "application", integrity: true, crossorigin: 'anonymous' %>
+  <%= javascript_include_tag "application", integrity: false %>
   <%= csrf_meta_tags %>
   <%= render 'govuk_publishing_components/components/meta_tags', content_item: @content_item.content_item %>
 
diff --git a/app/views/shared/_webchat.html.erb b/app/views/shared/_webchat.html.erb
index 74a4a3fdf..a67af394f 100644
--- a/app/views/shared/_webchat.html.erb
+++ b/app/views/shared/_webchat.html.erb
@@ -26,4 +26,4 @@
   </span>
 </p>
 <% # This is inline in the source however slimmer will optimize this. %>
-<%= javascript_include_tag "webchat", integrity: true, crossorigin: 'anonymous' %>
+<%= javascript_include_tag "webchat", integrity: false %>