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);