tksugimoto / chrome-extension_open-local-file-link

ローカルファイルへのリンク(file://~)を開けるようにするChrome拡張
https://chrome.google.com/webstore/detail/nikfmfgobenbhmocjaaboihbeocackld
MIT License
95 stars 38 forks source link

[Feature request] Allow scripts on specific domains #10

Closed RyanPWalker closed 4 years ago

RyanPWalker commented 4 years ago

This extension works on clicking files, but it'd be great if it allowed scripts to run on localhost pages too. For example: <script src="file://Users/me/repo/index.js"></script> is blocked by chrome.

tksugimoto commented 4 years ago

It is not possible to read a local file:// from a http(s):// page with a <script> tag.

It is better to start http server locally so that it looks like <script src="http://localhost/me/repo/index.js"></script>.