logoalt Hacker News

MrGilbertyesterday at 8:41 PM1 replyview on HN

I'm not sure how you'd patch that. Any request that’s made from the current open tab / window is made on behalf of the user. From my point of view, it's impossible for the browser to know, if the request is legit or not.


Replies

ronsoryesterday at 8:43 PM

An ideal implementation of the same origin policy would make it impossible for a site (through a fetch call or otherwise) to determine whether an extension resource exists/is installed or the site simply lacks permission to access it.