Skip to content

Commit

Permalink
Add CSRF and CSP meta tags to frame responses
Browse files Browse the repository at this point in the history
  • Loading branch information
sfnelson committed Nov 6, 2024
1 parent 32046e8 commit d69f67d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
katalyst-kpop (3.2.2)
katalyst-kpop (3.2.3)
katalyst-html-attributes
turbo-rails
view_component
Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/kpop/frame.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<html>
<head>
<%# Workaround for https://github.com/hotwired/turbo-rails/issues/669 %>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>

<%# include all turbo-track elements so turbo knows it can cache frame visits %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
Expand Down
2 changes: 1 addition & 1 deletion katalyst-kpop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "katalyst-kpop"
spec.version = "3.2.2"
spec.version = "3.2.3"
spec.authors = ["Katalyst Interactive"]
spec.email = ["[email protected]"]

Expand Down

0 comments on commit d69f67d

Please sign in to comment.