Overview
If you are unable to share or open local network resources in FogBugz, you might encounter the following error message on your browser:
Not allowed to load local resource: <file name>
This article provides the steps on how to bypass the security restriction prompting this error in Google Chrome.
Information
By default, modern browsers (i.e., Chrome, Firefox, Edge, etc.) restrict a server's access to local files due to security reasons. Browser-based attacks use JavaScript to map a network and attack connected servers or devices.
If you need to share your local network resources on FogBugz, you need to use the --allow-file-access-from-files
option in Google Chrome:
Windows
-
Ensure Chrome is currently not running.
-
Obtain the installation path of Google Chrome on your computer.
Example:
C:\Users\<username>\AppData\Local\Google\Chrome\Application.chrome.exe
-
Open a Command Prompt window and launch Chrome by typing its installation path with the additional argument:
--allow-file-access-from-files
.Example:
C:\Users\<username>\AppData\Local\Google\Chrome\Application>chrome.exe --allow-file-access-from-files
Mac/OSX
-
Ensure Chrome is currently not running.
-
Open Terminal.
-
Launch Google Chrome by typing the following command:
open /Applications/Google\ Chrome.app --args --allow-file-access-from-files
Note: Visit this forum to know more about other workarounds to allow file access to browsers.