refactor: demo page
This commit is contained in:
33
config/cors.php
Normal file
33
config/cors.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Laravel CORS Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| این تنظیمات برای کنترل درخواستهای Cross-Origin استفاده میشن
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => ['api/*', 'dev/*', 'sanctum/csrf-cookie'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
'allowed_origins' => [
|
||||
'http://localhost:8000',
|
||||
'http://megategra.com:8001'
|
||||
],
|
||||
|
||||
'allowed_origins_patterns' => [],
|
||||
|
||||
'allowed_headers' => ['*'],
|
||||
|
||||
'exposed_headers' => [],
|
||||
|
||||
'max_age' => 0,
|
||||
|
||||
'supports_credentials' => true,
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user