yin

708 经验值

自己写个中间件就好了

public function handle($request, Closure $next)
   {
       /*$response = $next($request);
       $response->header('Access-Control-Allow-Origin', '*');
       $response->header('Access-Control-Allow-Headers', 'X-Requested-With,X_Requested_With');*/

       $response = $next($request);
       $response->header('Access-Control-Allow-Origin', '*');
       $response->header('Access-Control-Allow-Headers', 'Origin, Content-Type, Cookie, Accept, Authorization');
       $response->header('Access-Control-Allow-Methods', 'GET, POST, PATCH, PUT, OPTIONS');
       $response->header('Access-Control-Allow-Credentials', 'true');

       return $response;
   }

不用包了直接composer remove xxx/xxx

既然没办法克服就当废物好了

咋变女声了? 女装JellyBool??