MCPcopy 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
382func (l *Location) RemoveCorsOption() {
383 l.RemoveDirectiveByFullParams("if", []string{"(", "$request_method", "=", "'OPTIONS'", ")"})
384}

Callers 2

AddCorsOptionMethod · 0.95
OperateProxyMethod · 0.95

Calls 1

Tested by

no test coverage detected