Current section

Files

Jump to
shopifex lib shopifex plug load_in_iframe.ex
Raw

lib/shopifex/plug/load_in_iframe.ex

defmodule Shopifex.Plug.LoadInIframe do
import Plug.Conn
def init(options) do
# initialize options
options
end
@doc """
This allows your application to load inside of an iframe by deleting the x-frame-options response header
"""
def call(conn, _) do
Plug.Conn.delete_resp_header(conn, "x-frame-options")
end
end