From 740ea963888ab8a91a17c7127d8584a01e67bce0 Mon Sep 17 00:00:00 2001 From: Ainun Nadhifah Syamsiyah Date: Wed, 4 Dec 2024 20:19:53 +0700 Subject: [PATCH] feat: add CORS configuration file for API access --- config/cors.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 config/cors.php diff --git a/config/cors.php b/config/cors.php new file mode 100644 index 0000000..6119ab6 --- /dev/null +++ b/config/cors.php @@ -0,0 +1,34 @@ + ['api/*', 'sanctum/csrf-cookie'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => ['*'], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, + +]; \ No newline at end of file