From 5e22a94015692efef6e7c072a06114f5740ff086 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Wed, 19 Apr 2023 23:49:13 +0300 Subject: [PATCH] fix cors --- frontend/modules/api/controllers/ApiController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/modules/api/controllers/ApiController.php b/frontend/modules/api/controllers/ApiController.php index 6065cd6..a47632a 100644 --- a/frontend/modules/api/controllers/ApiController.php +++ b/frontend/modules/api/controllers/ApiController.php @@ -53,6 +53,7 @@ class ApiController extends Controller //'Access-Control-Allow-Credentials' => true, 'Access-Control-Allow-Headers' => [ 'Access-Control-Allow-Origin', + 'Access-Control-Request-Methods', 'Content-Type', 'Access-Control-Allow-Headers', 'Authorization',