Skip to content

Commit

Permalink
Removed the crossorigin attribute and turned off SRI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hobbs committed Jan 30, 2020
1 parent 512c9f8 commit 1541e19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_webchat.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

0 comments on commit 1541e19

Please sign in to comment.