gioco-plus/hyperf-cors

hyperf cors component

dev-master 2021-03-08 11:46 UTC

This package is auto-updated.

Last update: 2022-09-08 15:40:50 UTC


README

基于 spatie/laravel-cors,感谢开发者提供这样方便的组件。

install

composer require "gioco-plus/hyperf-cors"

publish config

php bin/hyperf.php vendor:publish gioco-plus/hyperf-cors

usage

config/autoload/middlewares.php

return [
    'http' => [
        \GiocoPlus\Cors\Middleware\CorsMiddleware::class,
    ],
];