Skip to content

Commit

Permalink
Give JSON files the Access-Control-Allow-Origin: * header (#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
LumarisX authored Nov 4, 2023
1 parent e7814d3 commit f9bc940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9bc940

Please sign in to comment.