mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Support custom colors on side servers
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
a3ecfed7e3
commit
6abd0e8800
|
|
@ -13,6 +13,11 @@ AddType application/x-web-app-manifest+json .webapp
|
|||
</ifModule>
|
||||
</filesMatch>
|
||||
|
||||
<filesMatch "colors\.json$">
|
||||
Header set Access-Control-Allow-Origin "*"
|
||||
Header set Access-Control-Allow-Methods "GET,POST,OPTIONS"
|
||||
</filesMatch>
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
|
||||
|
|
@ -94,6 +99,8 @@ RewriteRule ^(.*) https://play.pokemonshowdown.com/$1 [R=301,L]
|
|||
RewriteRule ^style/fonts?/.*?\.(eot|svg|ttf|woff|woff2)$ - [E=SAFE_RESOURCE:1]
|
||||
RewriteRule ^data\/.*\.js(?:on)?$ - [E=SAFE_RESOURCE:1]
|
||||
Header set Access-Control-Allow-Origin * env=SAFE_RESOURCE
|
||||
Header set Access-Control-Allow-Methods "GET,POST,OPTIONS"
|
||||
Header set Access-Control-Allow-Headers "Content-Type, X-Requested-With"
|
||||
|
||||
# Redirect old battles to their corresponding replay
|
||||
# RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user