-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite module and secure cookies #141
Comments
Hi, thanks for the feature - do you think it should be on by default? |
Yes I think so. Since lws is "A lean, modular web server for rapid full-stack development." I think it should be on in the default use case, that is, development. |
yeah, i agree.. the only concern is that making this behaviour the default could surprise existing users accustomed to the previous behaviour.. It's a breaking change, unless people consider it a bug fix and not feature addition.. |
True. But I think that since it did not work before, nobody used lws this way, so there should be no breaking changes for anyone. |
Released in lws-rewrite v2.1.0. Reinstall local-web-server to pick up the change. On insecure connections (plain HTTP), stripping the |
When rewriting happens with an https destination, like in
ws --rewrite '/:user/repos/:name -> https://api.github.com/repos/:user/:name'
, cookies set by the destination are usually set with thesecure
flag, but since lws listens on http, this cookie gets lost.lws should strip the secure flag from the cookie, so cookies set from an https origin get set correctly.
The text was updated successfully, but these errors were encountered: