报错信息如下:
前端是 Ant Design,后端是 PHP 写的接口,服务器是 Apache
放在本地没有问题,放到线上之后偶尔会出现这个问题,多刷新几次会解决
大家有没有遇到过类似的问题,被卡住一周了,跪求指教
后端配置如下:
header("Content-Type:text/html;charset=utf-8");
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:*');
header('Access-Control-Allow-Headers:x-requested-with,content-type');