Skip to content

Commit 9112b6b

Browse files
authored
Bug: allowed iframe in LiveDebugger router (#372)
1 parent 6cfdfa0 commit 9112b6b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/live_debugger_web/plugs/allow_iframe.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ defmodule LiveDebuggerWeb.Plugs.AllowIframe do
99

1010
@spec call(Plug.Conn.t(), any) :: Plug.Conn.t()
1111
def call(conn, _opts) do
12-
delete_resp_header(conn, "x-frame-options")
12+
conn
13+
|> delete_resp_header("x-frame-options")
14+
|> delete_resp_header("content-security-policy")
1315
end
1416
end

0 commit comments

Comments
 (0)