-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Add option to run HTTPS locally #430
Comments
What I did is run Caddy proxy which redirects to dev server and could do https. |
How would one go about doing that? |
run caddy with something like
|
I think this is a great idea and can also be expanded and added to the deployment scripts as well. Perhaps using something like certbot can be of use. |
@vutran |
I build a tool for this purpose called proxrox. You can use it to start proxies with autogenerated self-signed certificates, combine origins and a few other things. The repo also contains an example project with a sever and client part (webpack based). |
Is it sufficient to just turn on HTTPS for the webpack dev server? With the change below, It starts up with a self-signed cert, and I'm proxying requests to my backend HTTPS server with the "proxy" option from 0.3.0. I needed to turn this on because my XSRF token header wasn't being sent. Inside
I just hacked it up directly inside I could turn this into a PR if that makes sense. |
Marking this with a milestone so I don’t forget to take another look at it. |
@dceddia Can you please turn 26877bcaa71509be3350f546f215f0855dc77ba1 into a PR? The only change I’d make is to have it look at |
I like that idea. I'll work on a PR. |
With the HTTPS env var set 'true', the dev server will serve over HTTPS.
With the HTTPS env var set 'true', the dev server will serve over HTTPS.
Fixed by #430. |
|
With the HTTPS env var set 'true', the dev server will serve over HTTPS.
With the HTTPS env var set 'true', the dev server will serve over HTTPS.
Works on Chrome, but in FF
Is there a way to choose a cert I create? |
I too need a way of using my own cert for local development. This is especially required for developing authentication systems locally, using DDNS. |
Under the covers As for Safari, I'm finding that if I click on Show Details then there is a link at the end that says visit this website. When you click that, it will trust the cert. I haven't tried this long enough but the code I see for Hope this helps! |
It would be useful to use Though this might more appropriately be a responsiblilty for |
I work on a lot of projects that involve screen sharing via WebRTC which must be done over https. I currently have no way of testing locally. Would it be possible to add an option to run https on the local webpack dev server?
The text was updated successfully, but these errors were encountered: