@salesforce/internal-lightning-out-containers 2.2.7-rc.0 → 2.2.7-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,16 +11,6 @@ import disableComponentNameCheckGate from "@salesforce/gate/org.salesforce.lo2.l
|
|
|
11
11
|
* SECURITY: opening re-enables arbitrary-script-load via URL-shaped componentName;
|
|
12
12
|
* bounded only by CSP. See env.ts BARE_SPECIFIER for the regex + threat model.
|
|
13
13
|
*/
|
|
14
|
-
let warned = false;
|
|
15
|
-
|
|
16
14
|
export function isComponentNameCheckDisabled() {
|
|
17
|
-
|
|
18
|
-
if (disabled && !warned) {
|
|
19
|
-
warned = true;
|
|
20
|
-
console.warn(
|
|
21
|
-
"[LO2] componentName validation bypassed via kill-switch gate " +
|
|
22
|
-
"(org.salesforce.lo2.lwr.disableComponentNameCheck). Security fix W-23730644 inactive.",
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
return disabled;
|
|
15
|
+
return disableComponentNameCheckGate.isOpen({ fallback: false });
|
|
26
16
|
}
|