Enable CORS

This commit is contained in:
2024-07-22 22:58:01 +02:00
parent 700faf4351
commit 30849019af
2 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -8,6 +8,10 @@ class Api
{
public function __construct()
{
Response::response()->header("Cache-control: no-cache");
Response::response()
->header("Cache-control: no-cache")
->header("Access-Control-Allow-Origin: *")
->header("Access-Control-Allow-Methods: *")
->header("Access-Control-Allow-Headers: *");
}
}