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
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
But I have not found a way to supply https protocol. @MarkPieszak: I will appreciate any help on this. Currently, the HMR is not working as HTTP is blocked by the chrome browser.
.net core 1.1 is supposed to have part of the fix ... so hopefully we will get this soon.
Till then i launch chrome like this :
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/Chrome dev session" --disable-web-security --allow-running-insecure-content"
So HMR will work.
I don't know if other browsers have some similar option
Thank you, @boban984. Your solution is working for me. I added a "new browser" to Visual studio 2015 (as Chrome-Unsecured) under IIS Express menu and now I'm able to run HMR.
Activity
mattburrell commentedon Nov 20, 2016
httplooks hard-coded in theWebpackDevMiddlewareclass. @SteveSandersonMS is there a reason for this?https://github.com/aspnet/JavaScriptServices/blob/master/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddleware.cs
MarkPieszak commentedon Nov 20, 2016
If I remember right there was no easy way to get webpack HMR to be https through this pipeline. But I can't find the previous discussion about it.
aaltotsky commentedon Nov 21, 2016
There is a parameter to replace server port in the dev branch:
https://github.com/aspnet/JavaScriptServices/blob/dev/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddlewareOptions.cs
But I have not found a way to supply https protocol. @MarkPieszak: I will appreciate any help on this. Currently, the HMR is not working as HTTP is blocked by the chrome browser.
mattburrell commentedon Nov 21, 2016
@aaltotsky Could you not disable https during development? Maybe toggle using an environment variable. That's what I'm having to do.
boban100janovski commentedon Nov 21, 2016
There is an existing issue about this #271
.net core 1.1 is supposed to have part of the fix ... so hopefully we will get this soon.
Till then i launch chrome like this :
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/Chrome dev session" --disable-web-security --allow-running-insecure-content"
So HMR will work.
I don't know if other browsers have some similar option
SteveSandersonMS commentedon Nov 21, 2016
There are always reasons :) See #271.
It should be possible for us to fix #271 soon now that .NET Core 1.1 has shipped.
aaltotsky commentedon Nov 22, 2016
Thank you, @boban984. Your solution is working for me. I added a "new browser" to Visual studio 2015 (as Chrome-Unsecured) under IIS Express menu and now I'm able to run HMR.