ExSaml.SecurityPlug (ex_saml v1.0.2)

Copy Markdown View Source

Plug that sets security headers on SAML responses.

Applied automatically by ExSaml.Router. Sets the following headers:

  • content-security-policy - with a per-request nonce (available via conn.private[:ex_saml_nonce])
  • cache-control / pragma - no caching
  • x-frame-options - SAMEORIGIN
  • x-xss-protection - enabled with block mode
  • x-content-type-options - nosniff

Summary

Functions

call(conn, opts)

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