LoginSignup
3
7

More than 5 years have passed since last update.

Firefoxからローカルフォルダーをブラウザで開く方法(file://~)

Last updated at Posted at 2018-03-29

通常はセキュリティで禁止されているので、設定変更が必要です。

firefox設定変更手順

  1. firefoxブラウザーを開いて、右上のopen menuボタンをクリックします。
  2. open help menuボタンをクリックし、Troubleshooting Informationを選択します。
    スクリーンショット 2018-03-29 17.15.38.png

  3. 開かれたページの中、Application Basics>Profile Folder>Show in Finderボタンをクリックします。
    スクリーンショット 2018-03-29 17.20.52.png

  4. 開かれたフォルダーにuser.jsファイルを作成して下記を追記します。
    同じファイル名が既に存在している場合には、user.jsを開いて追記


user_pref("capability.policy.policynames","localfilelinks");
user_pref("capability.policy.localfilelinks.sites","http://(ここにURLを記入します)");
//例:http://localhost:3000/
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

確認

ブラウザーを再起動し、ファイルURI(file://~)が埋め込まれたリンクを開けるかを確認します。

3
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
7