Skip to content

Instantly share code, notes, and snippets.

@birdie-github
Last active March 11, 2025 11:49
Chrome for Linux: a policy to enable Manifest V2 and force enable DNS over HTTPS using CloudFlare's one.one.one.one server

This is for the official Google Chrome. No idea how Chromium works - it depends on your distro. The policy files are most likely compatible with Chromium forks as well but again the policies directory will be different.

To be put into /etc/opt/chrome/policies/managed:
DoH.json:{ "DnsOverHttpsMode": "secure" }
DoH-server.json:{ "DnsOverHttpsTemplates": "https://one.one.one.one/dns-query" }
ExtensionManifestV2Availability.json:{ "ExtensionManifestV2Availability": 2 }

Files names are totally arbitrary.

The first two are necessary to restore DoH (DNS over HTTPs), because when enterprise policies are enabled, Google Chrome completely disables DoH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment