From bcbd721f7f9533e088422a3e669f463f73bae867 Mon Sep 17 00:00:00 2001 From: "E. S." Date: Thu, 15 May 2025 16:57:05 +0300 Subject: [PATCH] skin: enable integrity attributes conditionally --- src/engine/skin/FeaturedSkin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/skin/FeaturedSkin.php b/src/engine/skin/FeaturedSkin.php index 51a0f45..163551a 100644 --- a/src/engine/skin/FeaturedSkin.php +++ b/src/engine/skin/FeaturedSkin.php @@ -294,7 +294,7 @@ HTML; } protected function getStaticIntegrityAttribute(string $name): string { - if (isDev() || true) + if (isDev() || !isset($_GET['__enable_assets_integrity'])) return ''; global $config, $globalContext; return ' integrity="'.implode(' ', array_map(fn($hash_type) => $hash_type.'-'.$config['assets'][$globalContext->project][$name]['integrity'][$hash_type], self::RESOURCE_INTEGRITY_HASHES)).'"';