cuixueying 1、如果是加header头,需要加到服务器上,不能加到前端代码里,否则无效2、如果你是打开index.html报跨域的错,而非服务器端报错,你直接给你的chrom.exe添加以下解除跨域参数即可,具体参考以上面接小莹的回复! "--allow-file-access-from-files", "--allow-file-access-frome-files"," --disable-web-security"