CORS policy for Figma access

This commit is contained in:
Shuqi 2024-11-06 05:00:14 +08:00
parent 9a7f06b245
commit 01ed6ac706

View File

@ -1,5 +1,20 @@
RewriteEngine On
<FilesMatch \.(json|svg)$>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS"
</IfModule>
</FilesMatch>
<FilesMatch \.json$>
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>
</FilesMatch>
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f