OA系统在本地环境可以调取到在线编辑,我把OA部署在服务器上,访问的时候就变成提示插件未安装,
报错是:Access to script at 'http://127.0.0.1:2827/文件地址等' from origin '我服务器的域名' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.
看报错是跨域问题阻止访问,可是OA里明明有设置设置允许跨域的呀,是用的header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Headers:X-Requested-With');
header('Access-Control-Allow-Credentials:true'); 但是还是不能成功,麻烦有没有大佬解答一下怎么回事?
原创文章,禁止转载复制,信呼OA官网保留一切知识产权。