MIF_E31231623/website/wisata_web/config/cors.php

25 lines
494 B
PHP

<?php
return [
'paths' => ['api/*', 'storage/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => [],
'allowed_origins_patterns' => [
'/^http:\/\/localhost(:\d+)?$/',
'/^http:\/\/127\.0\.0\.1(:\d+)?$/',
'/^http:\/\/192\.168\.\d+\.\d+(:\d+)?$/',
'/^http:\/\/10\.\d+\.\d+\.\d+(:\d+)?$/',
],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
];