MCPcopy Create free account
hub / github.com/Authula/authula / initializeHeaderProtection

Method initializeHeaderProtection

plugins/csrf/plugin.go:77–107  ·  view source on GitHub ↗

initializeHeaderProtection initializes the CrossOriginProtection with trusted origins and sets up the custom deny handler.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

InitMethod · 0.95

Calls 8

ValidateTrustedOriginsFunction · 0.92
JSONResponseFunction · 0.92
ErrorMethod · 0.65
DebugMethod · 0.65
GetMethod · 0.65
SetMethod · 0.65
HeaderMethod · 0.45
WriteHeaderMethod · 0.45

Tested by

no test coverage detected