Skip to content

Commit

Permalink
hotfix: remove X-Frame-Options header to allow embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Aug 29, 2024
1 parent b462283 commit c4d0ffd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ class Application < Rails::Application
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.api_only = true

# Remove X-Frame-Options header to allow iframe embeds
config.action_dispatch.default_headers.delete('X-Frame-Options')
end
end

0 comments on commit c4d0ffd

Please sign in to comment.