MCPcopy
hub / github.com/rs/cors / Default

Function Default

cors.go:248–250  ·  view source on GitHub ↗

Default creates a new Cors handler with default options.

()

Source from the content-addressed store, hash-verified

246
247// Default creates a new Cors handler with default options.
248func Default() *Cors {
249 return New(Options{})
250}
251
252// AllowAll create a new Cors handler with permissive configuration allowing all
253// origins with all standard methods with any header and credentials.

Callers 11

mainFunction · 0.92
AppFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
DefaultFunction · 0.92
BenchmarkDefaultFunction · 0.70
BenchmarkPreflightFunction · 0.70
BenchmarkPreflightHeaderFunction · 0.70
TestDefaultFunction · 0.70

Calls 1

NewFunction · 0.70

Tested by 5

BenchmarkDefaultFunction · 0.56
BenchmarkPreflightFunction · 0.56
BenchmarkPreflightHeaderFunction · 0.56
TestDefaultFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…