You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to authenticate to a web application using SSO. The apache web server runs on localhost:8080, while the http-server runs on localhost:8443. The problem I'm experiencing is that http-server will rewrite the host header as localhost:8080. As a result, I can authenticate with the SSO server successfully, but I am redirected back to my web server at localhost:8080.
I expected to solve this problem by setting the changeOrigin option to false, but it isn't working as I'd expect it to work.
Environment Versions
OS: Ubuntu 18
Node version: 14.17.2
http-server version: 14.1.1
Steps to reproduce
Run http-server with --proxy-options.changeOrigin false.
Expected result
The changeOrigin flag is true by default, but can be overridden with the above option.
Actual result
The changeOrigin flag is always set to true and the option is ignored.
See lib/http-server.js:
I am attempting to authenticate to a web application using SSO. The apache web server runs on localhost:8080, while the http-server runs on localhost:8443. The problem I'm experiencing is that http-server will rewrite the
host
header as localhost:8080. As a result, I can authenticate with the SSO server successfully, but I am redirected back to my web server at localhost:8080.I expected to solve this problem by setting the changeOrigin option to false, but it isn't working as I'd expect it to work.
Environment Versions
Steps to reproduce
Run http-server with
--proxy-options.changeOrigin false
.Expected result
The
changeOrigin
flag is true by default, but can be overridden with the above option.Actual result
The
changeOrigin
flag is always set to true and the option is ignored.See lib/http-server.js:
Other information
I will open a PR if this behaviour is deemed to be a bug.
The text was updated successfully, but these errors were encountered: