From 290489eddac04714a6e79b788648760bb98bc880 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Thu, 12 Sep 2024 23:56:51 +0800 Subject: [PATCH] Issue #2578 - Part 3: Expose CORS and CORS bypass preflight requests preferences. --- modules/libpref/init/all.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index d687d9faf9..1960cda652 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -1222,6 +1222,12 @@ pref("dom.cycle_collector.incremental", false); pref("content.sink.pending_event_mode", 0); #endif +// Is support for CORS enabled? +pref("content.cors.disable", false); + +// Should preflight requests be bypassed when CORS is disabled? +pref("content.cors.bypass_preflight_request", false); + // Disable popups from plugins by default // 0 = openAllowed // 1 = openControlled