Update Cors Agar bisa Patch

This commit is contained in:
mikael-zakaria 2025-08-01 23:56:54 +07:00
parent d8d532edb9
commit 2bcf66b0db

View File

@ -21,7 +21,7 @@ class Cors implements FilterInterface
if (in_array($origin, $this->allowedOrigins)) {
$response->setHeader('Access-Control-Allow-Origin', $origin);
$response->setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
$response->setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, PATCH, DELETE, OPTIONS');
$response->setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization, X-Requested-With');
$response->setHeader('Access-Control-Allow-Credentials', 'true');
}