thinkphp5设置允许跨域请求

  • 1、在app顶层创建文件common\behavior\CronRun.php 写入以下代码<?phpnamespace app\common\behavior; use think\Exception;use think\Response; class CronRun{    public function run(&$dispatch){        header("A
1