No ‘Access-Control-Allow-Origin‘ header is present on the requested resource.解决方法
Access to XMLHttpRequest at ‘http://localhost:3000/?key=123’ from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.解决方法
遇到这个问题,要加上这两句话
注意:response或者是res,看自己的写法进行更改
res.header("Acc
原创
2021-06-16 12:19:10 ·
927 阅读 ·
0 评论