question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IMPORTANT July 2021: Chrome private network access restriction with hot module reloading

See original GitHub issue
  • Laravel Mix Version: 6.0.24
  • Node Version: 14.16.0
  • NPM Version: 6.14.11
  • OS: Windows 10 Pro

Description:

Using HMR spits out a deprecation warning from Google Chrome (Google page | Google developer blog ), which sounds like it will ultimately break the functionality to request data from one site (in my example a homestead site “site.test”) to a more private site (in this case the websocket). This picture helped me understand it, I think my situation is the private network -> local device example: nSGfU9xMJxIy6lMjJiMx

Deprecation warning: [Deprecation] The website requested a subresource from a network that it could only access because of its users' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them in Chrome 92 (July 2021). See https://chromestatus.com/feature/5436853517811712 for more details.

Steps To Reproduce:

Have a private network setup like mysite.test and start hmr with the mix watch --hot command. There has to be some kind of request to a subresource, in my case its just the request to any page.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
thecrypticacecommented, Aug 2, 2021

Oh yeah totally understand. I don’t expect you too at all. Honestly it’s complicated for me to understand too but I think I’ve got somewhat of a grasp on what we may be able to do to workaround the issues — hopefully.

0reactions
FlavioSBcommented, Aug 2, 2021

I’m afraid you’re better off discussing this with them yourselves, I can’t be the messenger for something I don’t fully understand yet. I feel you both understand this matter better than I do. Thank you for looking into it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

IMPORTANT July 2021: Chrome private network access restriction ...
This is a bug This is a modification request Code No code needed, reproducable in Laravel, just setup a Laravel project on a...
Read more >
Private Network Access problem w/ disabled web security
The error we get is for the localhost requests from a public site: Access to XMLHttpRequest at 'https://localhost:3030/static/first.qjson' from ...
Read more >
Quarterly Updates - The Chromium Projects
CORS-RFC1918 got renamed to Private Network Access. We are ready to ship restrictions on accessing resources from private networks from public HTTP pages...
Read more >
RoboForm Extension for Chrome Version News
Fix many minor UI bugs. RoboForm Chrome Extension ver 9.3.5 -- June 30, 2022. Fixed Create Account operation is not tracked in google...
Read more >
More time, tools, and details on the page experience update
Update on June 15, 2021: The page experience update is rolling out to all users ... This technique enables Google Search to load...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found