first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
fd7300e7-471e-47fd-bb61-4c9a80139305

View File

@@ -0,0 +1,21 @@
<?php
namespace app\http\middleware;
use think\facade\Request;
class CrossDomain
{
public function handle($request, \Closure $next)
{
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:*');
header('Access-Control-Allow-Headers:*');
header('Access-Control-Allow-Credentials:false');
if (Request::isOptions()) {
return response('',200);
}
return $next($request);
}
}