mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Give JSON files the Access-Control-Allow-Origin: * header (#2172)
This commit is contained in:
parent
e7814d3c6d
commit
f9bc940eb5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user