Replies: 1 comment 9 replies
-
@huang-x-h Did you use the redirect plugin? What does the redirect response look like (from the backend). |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we use https to access apisix, backend server use http.
Now, when we access
https://example.com:9443/path/login.html
, this page will be form submit and the backend server will redirect to '/path/index.html, then browser url change to
http://example.com:9443/path/index.html`, nothttps
protocolSo we add follow snippet, it's work fine.
The backend server is Java, we use
HttpServletResponse response.sendRedirect(redirectUrl)
But i think this is not a right way, have an another way to fixed this?
Beta Was this translation helpful? Give feedback.
All reactions