/
petrhlam
/
project_moon
Обзор
Документация
Войти
/
petrhlam
/
project_moon
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
api/config/cors.php
51 строка
1 KB
Andrey Sukhikh
Added new python service
19 май 2025, 20:30
19 май 2025, 20:30
aced71a
Код
Авторство
О чём код?
<?php return [ // 'paths' => ['api/*', 'sanctum/csrf-cookie'], 'paths' => ['api/*','sanctum/csrf-cookie'], 'allowed_methods' => ['POST'], 'allowed_origins' => ['http://localhost:3000', 'http://127.0.0.1:3000', env('FRONTEND_URL')], 'allowed_origins_patterns' => [], 'allowed_headers' => ['*'], 'exposed_headers' => [], 'supports_credentials' => true, ]; // 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 // | // */ // 'paths' => ['api/*', 'login', 'logout', 'sanctum/csrf-cookie'], // 'allowed_methods' => ['*'], // 'allowed_origins' => ['http://localhost:3000'], // 'allowed_origins_patterns' => [], // 'allowed_headers' => ['*'], // 'exposed_headers' => [], // 'max_age' => 0, // 'supports_credentials' => true, // ];