Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it that easy?

  Chrome extensions can expose internal files to web pages through the web_accessible_resources field in their manifest.json. When an extension is installed and has exposed a resource, a fetch() request to chrome-extension://{id}/{file} will succeed. When the extension is not installed, Chrome blocks the request and the promise rejects.
This looks intentional enough that I wonder if there's a legit reason for it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: