Modify headers to allow embed (#3935)
This commit is contained in:
parent
81f7f73575
commit
07ba4d8b2b
1 changed files with 8 additions and 0 deletions
|
|
@ -1,7 +1,15 @@
|
|||
class LiquidEmbedsController < ApplicationController
|
||||
before_action :set_cache_control_headers, only: %i[show]
|
||||
after_action :allow_iframe, only: :show
|
||||
layout false
|
||||
|
||||
def show
|
||||
set_surrogate_key_header params.to_s
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def allow_iframe
|
||||
response.headers.except! "X-Frame-Options"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue