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.

CORS-RFC1918 Support

See original GitHub issue

Is your feature request related to a problem? Please describe. I’ve not seen this mentioned before (apologies if it has come up).

Chrome will soon implement this and block any public to private requests (public domain to 127.0.0.1).

See https://chromestatus.com/feature/5436853517811712

Describe the solution you’d like Update the cors package / add an option directly in the socket.io constructor to set the new CORS header. https://wicg.github.io/private-network-access/#headers

Describe alternatives you’ve considered I could host a centralized server, but I’d rather not do this for my users.

Additional context

Chrome’s current warning message

This now appears in chrome: [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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NoelDaviescommented, May 18, 2021

Of course, my apologies! Will do now!

0reactions
darrachequesnecommented, Jan 18, 2022

Closed due to inactivity, please reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feedback wanted: CORS for private networks (RFC1918)
CORS-RFC1918 is a proposal to block requests from public networks by default on the browser and require internal devices to opt-in to such ......
Read more >
Private Network Access - GitHub Pages
This specification was previously known as CORS-RFC1918. ... don't actually want to support cross-origin requests as being CORS-same-origin:
Read more >
CORS for private networks (RFC1918) warning on call to local ...
CORS for private networks (RFC1918) warning on call to local service ; General Request URL ; Request ; Method · OPTIONS Status ;...
Read more >
Access-Control-Allow-Private-Network is not working - chromium
Issue 1253042 : Blink>SecurityFeature>CORS>RFC1918: Access-Control-Allow-Private-Network is not working. Reported by schedule grego...@gmail.com ...
Read more >
CORS and RFC1918 · Issue #143 · mozilla/standards-positions
If this is part of spectre mitigations, maybe a summary explanation would help. That thread (like the bugs) is long.
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