修改部分声明;

This commit is contained in:
augushong
2021-11-30 09:13:51 +08:00
parent ce577d9cfa
commit 03991b7159
7 changed files with 12 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ class CsrfMiddleware
public function handle(Request $request, \Closure $next)
{
if (env('EASYADMIN.IS_CSRF', true)) {
if (env('adminsystem.IS_CSRF', true)) {
if (!in_array($request->method(), ['GET', 'HEAD', 'OPTIONS'])) {
// 跨域校验