Documentation
¶
Index ¶
Constants ¶
View Source
const ( InlineScript inlineKind = iota InlineStyle )
Variables ¶
This section is empty.
Functions ¶
func PatchHeaders ¶
PatchHeaders mutates headers so an inline <script> or <style> element can run. Returns the nonce to place on the inline tag. Returns "" if no patch was needed (e.g., CSP already allowed inline) or no CSP headers were present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.