Outerfaces.Odd.Plugs.OddCDNProviderContentSecurityPlug (Outerfaces Dependency Distribution (ODD) v0.2.5)
View SourceA plug for setting Content Security Policy headers on responses.
Summary
Functions
@spec build_origin_list_for_application(%{ protocol: String.t(), host: String.t(), port: non_neg_integer() }) :: [String.t()]
@spec call(Plug.Conn.t(), Keyword.t()) :: Plug.Conn.t()
@spec generate_nonce() :: String.t()
@spec maybe_inject_nonce(Plug.Conn.t()) :: Plug.Conn.t()