From 01ed6ac706bb071ce72dc4cd2bc3652c97eb1f09 Mon Sep 17 00:00:00 2001 From: Shuqi Date: Wed, 6 Nov 2024 05:00:14 +0800 Subject: [PATCH] CORS policy for Figma access --- php/.htaccess | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/php/.htaccess b/php/.htaccess index 2094972..34449b7 100644 --- a/php/.htaccess +++ b/php/.htaccess @@ -1,5 +1,20 @@ RewriteEngine On + + + Header set Access-Control-Allow-Origin "*" + Header set Access-Control-Allow-Methods "POST, GET, OPTIONS" + + + + + + Header set Cache-Control "no-cache, no-store, must-revalidate" + Header set Pragma "no-cache" + Header set Expires 0 + + + RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f