Packages

Set HTTP headers to work inside an iframe.

Current section

Files

Jump to
iframe_headers lib iframe_headers.ex
Raw

lib/iframe_headers.ex

defmodule IframeHeaders do
def init(options) do
options
end
def call(conn, _options) do
conn |> Plug.Conn.put_resp_header("p3p", "CP=\"Internet Explorer Requires This In Order To Set Third Party Cookies\"")
|> Plug.Conn.delete_resp_header("x-frame-options")
end
end