Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1Panel-dev/1Panel
/ RemoveCorsOption
Method
RemoveCorsOption
agent/utils/nginx/components/location.go:382–384 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
380
}
381
382
func
(l *Location) RemoveCorsOption() {
383
l.RemoveDirectiveByFullParams(
"if"
, []string{
"("
,
"$request_method"
,
"="
,
"'OPTIONS'"
,
")"
})
384
}
Callers
2
AddCorsOption
Method · 0.95
OperateProxy
Method · 0.95
Calls
1
RemoveDirectiveByFullParams
Method · 0.95
Tested by
no test coverage detected