mirror of
https://github.com/JGH0/Todo-App-Backend.git
synced 2026-06-03 13:28:47 +02:00
some shit
This commit is contained in:
@@ -34,11 +34,7 @@ class Cors extends BaseConfig
|
||||
* - ['http://localhost:8080']
|
||||
* - ['https://www.example.com']
|
||||
*/
|
||||
<<<<<<< HEAD
|
||||
'allowedOrigins' => ['http://localhost:5173', 'http://127.0.0.1:5173'],
|
||||
=======
|
||||
'allowedOrigins' => ['http://localhost:5173', 'http://127.0.0.1:5173', 'http://localhost'],
|
||||
>>>>>>> main
|
||||
|
||||
/**
|
||||
* Origin regex patterns for the `Access-Control-Allow-Origin` header.
|
||||
@@ -72,11 +68,7 @@ class Cors extends BaseConfig
|
||||
*
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
|
||||
*/
|
||||
<<<<<<< HEAD
|
||||
'allowedHeaders' => ['*'],
|
||||
=======
|
||||
'allowedHeaders' => ['Content-Type', 'Authorization', 'X-API-Key'],
|
||||
>>>>>>> main
|
||||
|
||||
/**
|
||||
* Set headers to expose.
|
||||
@@ -101,11 +93,7 @@ class Cors extends BaseConfig
|
||||
*
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
|
||||
*/
|
||||
<<<<<<< HEAD
|
||||
'allowedMethods' => ['*'],
|
||||
=======
|
||||
'allowedMethods' => ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||
>>>>>>> main
|
||||
|
||||
/**
|
||||
* Set how many seconds the results of a preflight request can be cached.
|
||||
|
||||
Reference in New Issue
Block a user