Skip to content

Commit

Permalink
Give all data/ files Access-Control-Allow-Origin header (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
LumarisX authored Nov 9, 2023
1 parent 3a8a793 commit a083b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +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]
RewriteRule ^data\/.*\.js(?:on)?$ - [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 a083b1d

Please sign in to comment.