Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/imgproxy/imgproxy
/ IsSecurityOptionsAllowed
Method
IsSecurityOptionsAllowed
options/parser/parser.go:33–39 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
31
}
32
33
func
(p *Parser) IsSecurityOptionsAllowed(ctx context.Context) error {
34
if
p.config.AllowSecurityOptions {
35
return
nil
36
}
37
38
return
newSecurityOptionsError(ctx)
39
}
Callers
5
applyMaxSrcResolutionOption
Method · 0.95
applyMaxSrcFileSizeOption
Method · 0.95
applyMaxAnimationFramesOption
Method · 0.95
applyMaxAnimationFrameResolutionOption
Method · 0.95
applyMaxResultDimensionOption
Method · 0.95
Calls
1
newSecurityOptionsError
Function · 0.85
Tested by
no test coverage detected