Shopifex.Plug.SetCSPHeader exception (Shopifex v3.0.0)

Copy Markdown View Source

Adds Content-Security-Policy response header to the provided Plug.Conn in order to securely load embedded application in the Shopify admin panel.

Read more here: https://shopify.dev/apps/store/security/iframe-protection#embedded-apps

Summary

Functions

call(conn, _)

@spec call(conn :: Plug.Conn.t(), opts :: Plug.opts()) :: Plug.Conn.t() | none()

init(options)

@spec init(options :: Plug.opts()) :: Plug.opts()