HandleCors
class HandleCors (View source)
Свойства
| protected Container | $container | Экземпляр контейнера. | |
| protected CorsService | $cors | Экземпляр службы CORS. |
Методы
| void | __construct(Container $container, CorsService $cors) Создать новый экземпляр middleware. | |
| Response | handle(Request $request, Closure $next) Обработать входящий запрос. | |
| bool | hasMatchingPath(Request $request) Получить путь из конфигурации, чтобы определить, нужно ли запускать службу CORS. | |
| array | getPathsByHost(string $host) Получить пути CORS для данного хоста. |
Подробности
void __construct(Container $container, CorsService $cors)
Создать новый экземпляр middleware.
protected bool hasMatchingPath(Request $request)
Получить путь из конфигурации, чтобы определить, нужно ли запускать службу CORS.
protected array getPathsByHost(string $host)
Получить пути CORS для данного хоста.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Http/Middleware/HandleCors.html