mirror of
https://github.com/arkenfox/user.js.git
synced 2026-10-27 11:31:27 +01:00
enforce CSP
This commit is contained in:
1 parent
2fcd21083e
commit
df1e1e42e8
1 file changed
+3
-1
@@ -672,7 +672,9 @@ user_pref("network.stricttransportsecurity.preloadlist", true);
|
|||||||
// 0=do neither 1=pre-populate url 2+pre-populate url + pre-fetch cert (default)
|
// 0=do neither 1=pre-populate url 2+pre-populate url + pre-fetch cert (default)
|
||||||
// https://github.com/pyllyukko/user.js/issues/210
|
// https://github.com/pyllyukko/user.js/issues/210
|
||||||
user_pref("browser.ssl_override_behavior", 1);
|
user_pref("browser.ssl_override_behavior", 1);
|
||||||
|
// 1222: enforce CSP (Content Security Policy) (default is true)
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
|
||||||
|
user_pref("security.csp.enable", true);
|
||||||
/*** 1400: FONTS ***/
|
/*** 1400: FONTS ***/
|
||||||
user_pref("ghacks_user.js.parrot", "1400 syntax error: the parrot's bereft of life!");
|
user_pref("ghacks_user.js.parrot", "1400 syntax error: the parrot's bereft of life!");
|
||||||
// 1401: disable websites downloading their own fonts (0=block, 1=allow)
|
// 1401: disable websites downloading their own fonts (0=block, 1=allow)
|
||||||
|
|||||||
Reference in new issue
Block a user