Skip to content

Commit

Permalink
Merge pull request #554 from louishuyng/fix-x-frame-option-always-set…
Browse files Browse the repository at this point in the history
…-to-deny

Update syntax condition inside method permit_framing
  • Loading branch information
allmarkedup authored Nov 22, 2023
2 parents 44750ed + 87fa1a1 commit cc8eb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/lookbook/previews_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def scenario_json(scenario)

def permit_framing
headers["X-Frame-Options"] = Lookbook.config.preview_embeds.policy if embedded?
headers["X-Frame-Options"] = "SAMEORIGIN" if headers["X-Frame-Options"] == "DENY"
headers["X-Frame-Options"] = "SAMEORIGIN" if headers["X-Frame-Options"].upcase == "DENY"
end
end
end

0 comments on commit cc8eb72

Please sign in to comment.