Documentation ¶ Index ¶ Constants func PatchHeaders(res *http.Response, kind inlineKind) (string, error) Constants ¶ View Source const ( InlineScript inlineKind = iota InlineStyle ) Variables ¶ This section is empty. Functions ¶ func PatchHeaders ¶ func PatchHeaders(res *http.Response, kind inlineKind) (string, error) PatchHeaders mutates CSP headers and meta tags so an inline <script> or <style> element can run. Returns the nonce to place on the inline tag. The nonce is safe to inject unconditionally. Types ¶ This section is empty. Source Files ¶ View all Source files meta.gopatch.go Click to show internal directories. Click to hide internal directories.