-
Notifications
You must be signed in to change notification settings - Fork 121
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
Support HTTPS in dev environment #24
Comments
Hi Simon, I made several attempts to implement SSL support for dev environment, I already answered this question on Medium.
|
Digging through the VueCliMiddleware package I think it is purposely not supported I think the trick is in the StartVueCliServerAsync method:
Webpack Devserver https argument
By getting the key, cert and ca from asp.net core app configuration I think it could work, haven' figured out how to this though 😅. |
PR #50 fixes this issue :) |
Hi,
I've been trying to make dev server support HTTPS, but I can't quite make it happen.
What I did was making
app.UseHttpsRedirection();
run in all envrionment, addinghttps: true
to vue.config.js and it serves as https. The problem is that chrome does not trust the dev-certs generated by asp.net core. I can't tell if it something about linking the certificate info inhttps: {....}
, as I cannot see any similar setup in the official react template. Since Asp.net core 3.0 supports https, a better solution would be automatically uses the very same cert automatically.Would be great if someone could tell me what I did wrong. Cheers!
Simon
The text was updated successfully, but these errors were encountered: