fix: add CORS headers, make ci builds as preleases
This commit is contained in:
@@ -64,9 +64,4 @@ class Controllertgshophandle extends Controller
|
||||
|
||||
$app->bootAndHandleRequest();
|
||||
}
|
||||
|
||||
public function spa()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user