Download the PHP package zxin/think-cors without Composer
On this page you can find all versions of the php package zxin/think-cors. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package think-cors
ThinkPHP 6.1、8.0 - CORS 跨域控制扩展
全局启用
- 配置服务注册 (app/service.php):
\Zxin\Think\Cors\Service::class
局部启用
- 配置服务注册 (app/service.php):
\Zxin\Think\Cors\Service::class
- 禁用自动注册中间件:
config.cors.auto_register_middleware => false
- 注册中间件:
\Zxin\Think\Cors\CorsMiddleware::class
- 确保优先级:
config.middleware.priority
- 配置服务注册 (app/service.php):
代码引用
TODO
- 新的参考跟踪 fruitcake/php-cors
All versions of think-cors with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
symfony/polyfill-php80 Version ^1
topthink/framework Version ^6.1|~8.0.1|~8.1.2
symfony/polyfill-php80 Version ^1
topthink/framework Version ^6.1|~8.0.1|~8.1.2
The package zxin/think-cors contains the following files
Loading the files please wait ....