Skip to content

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.

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.

policies.json
{
"policies": {
"LocalFileLinks": [
"http://example.org/",
"http://example.edu/"
]
}
}
JSON schema
LocalFileLinks JSON schema
{
"type": "array",
"items": {
"type": "string"
}
}
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>
FirefoxFirefox ESRFirefox Enterprise
Available since 68Available since 68Available since 149

CCK2 Equivalent: N/A
OMA-URI: LocalFileLinks
Preferences Affected: capability.policy.policynames, capability.policy.localfilelinks_*