]> git.openstreetmap.org Git - rails.git/commitdiff
Replace csp_meta_tag with `secure_headers` nonce
authorGregory Igelmund <github.com@grekko.de>
Thu, 21 Mar 2024 11:09:32 +0000 (12:09 +0100)
committerGregory Igelmund <github.com@grekko.de>
Thu, 21 Mar 2024 11:33:00 +0000 (12:33 +0100)
app/views/layouts/_head.html.erb

index 0ee5bf9c0f5c56ae7a3f4bf70eaf166fe05cfda1..34046bcab85ecac58481bfb6d0dcaf07911697b6 100644 (file)
@@ -11,6 +11,6 @@
   <%= yield :head %>
   <%= yield :auto_discovery_link_tag %>
   <%= csrf_meta_tag %>
-  <%= csp_meta_tag %>
+  <meta name="csp-nonce" content="<%= content_security_policy_style_nonce %>" />
   <title><%= "#{@title} | " if @title %><%= t "layouts.project_name.title" %></title>
 <% end %>