middleware

package
v0.0.0-...-3062178 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCSP

func WithCSP(config CSPConfig) func(http.Handler) http.Handler

Types

type CSPConfig

type CSPConfig struct {
	ScriptSrc []string // External script domains allowed
}

Jump to

Keyboard shortcuts

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