后端已经设置了跨域,前端还是报错

后端laravel 中已经设置了跨域如下:


$response->header('Access-Control-Allow-Origin', $origin);
 $response->header('Access-Control-Allow-Headers', 'Origin, Content-Type, Cookie, X-CSRF-TOKEN, Accept, Authorization, X-XSRF-TOKEN');
$response->header('Access-Control-Expose-Headers', 'Authorization, authenticated');
$response->header('Access-Control-Allow-Methods', 'GET, POST, PATCH, PUT, OPTIONS');

但是前端还是报跨域错误:

img

img


其它的请求都可以,唯独 这个/user.status.update报跨域错误,求解~

其他接口也是这种以.连接的吗 (user.status.update)

是否是csrf 的问题