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.
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_*
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>See also
Section titled “See also”- File URI scheme on wikipedia.org