Download the PHP package ajiho/think-cors without Composer
On this page you can find all versions of the php package ajiho/think-cors. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ajiho/think-cors
More information about ajiho/think-cors
Files in ajiho/think-cors
Download ajiho/think-cors
More information about ajiho/think-cors
Files in ajiho/think-cors
Vendor ajiho
Package think-cors
Short Description cors middleware for thinkphp6
License MIT
Homepage https://gitee.com/ajiho/think-cors
Package think-cors
Short Description cors middleware for thinkphp6
License MIT
Homepage https://gitee.com/ajiho/think-cors
Please rate this library. Is it a good library?
Informations about the package think-cors
think-cors
是一个用于解决前后端分离thinkphp6输出API时产生跨域问题的简单中间件。
安装
composer require ajiho/think-cors
优点
虽然代码量不多,而且也很简单,抽离出来通过composer方式安装,通过配置文件的方式解决跨域问题变得很简单,多个项目也能复用,同时后期维护也比较简单。
配置
/config/cors.php
使用
和tp6的中间件用法一样
All versions of think-cors with dependencies
PHP Build Version
Package Version
Requires
topthink/framework Version
^6.0 || ^8.0
The package ajiho/think-cors contains the following files
Loading the files please wait ....