LocalFileLinks
Enable linking to local files by origin.
By default, a page served over http:// or https:// cannot link to a file:/// URL.
Firefox blocks the navigation and reports a security error in the browser console.
This policy lists the origins that are allowed to link to the local file system. Intranet applications may need this, for example, to link to files on a shared drive.
Values
Section titled “Values”LocalFileLinks expects a list of origins allowed to link to file:/// URLs, such as http://example.org/.
Each origin is a scheme, hostname and optional port.
Examples
Section titled “Examples”{ "policies": { "LocalFileLinks": [ "http://example.org/", "http://example.edu/" ] }}JSON schema
{ "type": "array", "items": { "type": "string" }}Windows (GPO)
Section titled “Windows (GPO)”Software\Policies\Mozilla\Firefox\LocalFileLinks\1 = "https://example.org"Software\Policies\Mozilla\Firefox\LocalFileLinks\2 = "https://example.edu"<dict> <key>LocalFileLinks</key> <array> <string>http://example.org</string> <string>http://example.edu</string> </array></dict>Compatibility
Section titled “Compatibility”| Firefox | Firefox ESR | Firefox Enterprise |
|---|---|---|
| Available since 68 | Available since 68 | Available since 149 |
CCK2 Equivalent: N/A
OMA-URI: LocalFileLinks
Preferences Affected: capability.policy.policynames, capability.policy.localfilelinks_*
See also
Section titled “See also”- File URI scheme on wikipedia.org