http-party / http-server

a simple zero-configuration command-line http server
MIT License
13.59k stars 1.49k forks source link

secure cookies #602

Open 5im-0n opened 4 years ago

5im-0n commented 4 years ago

Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.

When rewriting to an https location with http-server -P https://www.amazon.com, and a cookie with a secure flag gets set, the cookie is lost, because http-server listens on http, and not on https.

What did you expect to happen?

It would be nice it there was an option to strip the secure flag, so the cookie gets set on localhost.

If the issue is a feature request, what is the motivation / use case for it?

developing a spa on localhost and rewriting api requests to a remote dev/test/staging server exposed on https.

github-actions[bot] commented 3 years ago

This issue has been inactive for 180 days