From f9bc940eb5b2f2d55f7ea9b5c8c82e9ffe62c3c0 Mon Sep 17 00:00:00 2001 From: LumarisX <65790297+LumarisX@users.noreply.github.com> Date: Sat, 4 Nov 2023 00:04:15 -0700 Subject: [PATCH] Give JSON files the Access-Control-Allow-Origin: * header (#2172) --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 6bedf899f9..bea8fe2d1d 100644 --- a/.htaccess +++ b/.htaccess @@ -91,6 +91,7 @@ RewriteCond %{HTTP_HOST} ^www\.play\.pokemonshowdown\.com$ [NC] RewriteRule ^(.*) https://play.pokemonshowdown.com/$1 [R=301,L] RewriteRule ^style/fonts?/.*?\.(eot|svg|ttf|woff|woff2)$ - [E=SAFE_RESOURCE:1] +RewriteRule ^data/(moves|abilities|learnsets).json$ - [E=SAFE_RESOURCE:1] Header set Access-Control-Allow-Origin * env=SAFE_RESOURCE # Redirect old battles to their corresponding replay