csp

package
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NonceResponseWriter added in v0.34.1

func NonceResponseWriter(nonce string, w http.ResponseWriter) http.ResponseWriter

NonceResponseWriter will add a nonce value to <script> and <style> tags written to the response.

func NonceValue

func NonceValue(ctx context.Context) string

NonceValue will return the nonce value from the context.

func WithNonce

func WithNonce(ctx context.Context, value string) context.Context

WithNonce will add a nonce value to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL