-
Notifications
You must be signed in to change notification settings - Fork 121
HMR blocked due to CORS #35
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
Comments
Hi, can you confirm you are using ASP.NET Core app URL at http://localhost:5000/ (in your case http://192.168.1.54:5000) instead of vue app URL at port 8080? |
I just started the app with my IIS Express config, so https://localhost:44352/ in this case |
Try to run the site with http only and let me know if your problem persists :) |
It works with HTTP, but ideally our application should work in HTTPS-mode. I also have an Angular project that uses HMR/Sock-JS and that one uses HTTPS with no issue because it just talks to my localhost, instead to a specific IP |
There were some attempts to support HTTPS in dev environment #24 , but I've actually never seen a working project with ASP.NET / Vue... |
Ah that's too bad. Hopefully someone can figure it out soon |
I cloned the project from here and didn't really change much. The project builds and starts fine but I saw this error in my dev tools:
The issue is probably caused by the request going to the IP address instead of localhost, but I am not sure where to change this

The text was updated successfully, but these errors were encountered: