mirror of
https://github.com/alibaba/higress.git
synced 2026-06-06 03:07:28 +08:00
Disable reroute in some plugins (#2639)
This commit is contained in:
@@ -75,6 +75,7 @@ func parseConfig(json gjson.Result, corsConfig *config.CorsConfig, log log.Log)
|
||||
}
|
||||
|
||||
func onHttpRequestHeaders(ctx wrapper.HttpContext, corsConfig config.CorsConfig, log log.Log) types.Action {
|
||||
ctx.DisableReroute()
|
||||
log.Debug("onHttpRequestHeaders()")
|
||||
requestUrl, _ := proxywasm.GetHttpRequestHeader(":path")
|
||||
method, _ := proxywasm.GetHttpRequestHeader(":method")
|
||||
|
||||
Reference in New Issue
Block a user