layui跨域上传文件报错Response to preflight request doesn‘t pass access control check: It does not have...
最近后台系统要使用layui的文件上传跨域功能, 后端接口配置好了允许跨域,图片也可以正常上传了,心里想着就完事了结果稍微测了一下,发现视频居然不能正常上传,控制台一直在报一个错:Access to XMLHttpRequest at 'xxxxxx' from origin 'xxxxxx' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It doe
原创
2020-12-24 13:52:09 ·
828 阅读 ·
0 评论