Closed wodingyang closed 2 years ago
response.setPath
is an incorrect usage and does not return the redirect address to the client.
we should use response.setHeader()
like:
response.setHeader("Location", "/rjsp/check/123")
ref: https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md
thank you!
Description
Want to use java plugin to do redirection,code: Return an error after requesting routing, check the log The request is not redirected but the request goes upstream
Environment
apisix version
):2.13.2