From d1b154303a6d6182d6d58490eb6ac83e40fa062d Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 28 Jan 2024 15:55:24 +0000 Subject: [PATCH] Fixed CORS issues. --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index fca8342..d6441c9 100644 --- a/public/index.php +++ b/public/index.php @@ -26,6 +26,7 @@ define('FTM_FILE_HASH_MAP', [ ]); header('X-Powered-By: Futami'); +header('Access-Control-Allow-Origin: *'); $reqMethod = (string)filter_input(INPUT_SERVER, 'REQUEST_METHOD'); if($reqMethod === 'OPTIONS') { @@ -95,7 +96,6 @@ if($reqPath === '/' || $reqPath === '/index.html' || $reqPath === '/index.php') } header('Cache-Control: max-age=86400, must-revalidate'); -header('Access-Control-Allow-Origin: *'); if($reqPath === '/common.json') { etag_file('common', FTM_COMMON_CONFIG);