unsa-pis-be/config/cors.php

35 lines
987 B
PHP
Raw Normal View History

2022-06-14 01:21:39 +00:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/
2022-08-18 18:45:24 +00:00
'paths' => ['api/*','/*', 'sanctum/csrf-cookie','oauth/*'],
2022-06-14 01:21:39 +00:00
'allowed_methods' => ['*'],
2022-08-18 18:45:24 +00:00
'allowed_origins' => ['*','http://localhost:3000/'],
2022-06-14 01:21:39 +00:00
2022-08-18 18:45:24 +00:00
'allowed_origins_patterns' => ['content-type', 'accept', 'x-custom-header', 'Access-Control-Allow-Origin'],
2022-06-14 01:21:39 +00:00
'allowed_headers' => ['*'],
2022-08-18 18:45:24 +00:00
'exposed_headers' => ['x-custom-response-header'],
2022-06-14 01:21:39 +00:00
'max_age' => 0,
'supports_credentials' => false,
];