fix: add CORS headers, make ci builds as preleases

This commit is contained in:
Nikita Kiselev
2025-07-10 19:13:39 +03:00
parent 9735d48957
commit 55153531fb
3 changed files with 11 additions and 8 deletions

View File

@@ -64,9 +64,4 @@ class Controllertgshophandle extends Controller
$app->bootAndHandleRequest();
}
public function spa()
{
}
}

View File

@@ -43,5 +43,9 @@ class JsonResponse extends Response
{
http_response_code($this->getCode());
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header('Access-Control-Allow-Headers: Content-Type, Authorization');
header('Access-Control-Allow-Credentials: true');
}
}