app/controllers/lookbook/previews_controller.rb in lookbook-2.1.1 vs app/controllers/lookbook/previews_controller.rb in lookbook-2.2.0
- old
+ new
@@ -66,9 +66,9 @@
}
end
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