Enable CORS
This commit is contained in:
1 parent
700faf4351
commit
30849019af
2 files changed
+13
-1
No files matched your search
@@ -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: *");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user