diff --git a/lib/pinchflat_web/router.ex b/lib/pinchflat_web/router.ex index 6b70d03..27f3db2 100644 --- a/lib/pinchflat_web/router.ex +++ b/lib/pinchflat_web/router.ex @@ -11,6 +11,7 @@ defmodule PinchflatWeb.Router do plug :put_root_layout, html: {PinchflatWeb.Layouts, :root} plug :protect_from_forgery plug :put_secure_browser_headers + plug :allow_iframe_embed end pipeline :api do @@ -84,4 +85,8 @@ defmodule PinchflatWeb.Router do defp credential_set?(credential) do credential && credential != "" end + + defp allow_iframe_embed(conn, _opts) do + delete_resp_header(conn, "x-frame-options") + end end