logoalt Hacker News

josephcsiblelast Tuesday at 5:17 PM3 repliesview on HN

Why don't all browsers, desktop and mobile, just block all cross-origin access to localhost?


Replies

easterncalculuslast Tuesday at 5:24 PM

For one I think it would break all those "update your BIOS via your motherboard website" apps that probably shouldn't exist anyways.

There probably are some legitimate uses, but I'm straining to come up with them.

show 1 reply
dwaitelast Wednesday at 8:00 AM

There's effort to define standard behavior here. See https://wicg.github.io/private-network-access/ (although I suspect this document may make a significant shift soon)

chedaboblast Tuesday at 7:40 PM

I thought they did for resources and JS, which is why Meta have to use WebRTC instead?

I think the Yandex one slips through because CORS does a naive check against just what's in the header, not what it resolves to?