解决Node.Js跨域问题

跨域:用我的理解的一种现象来讲,我的电脑至关于一个站点,本地的html文档中写了一段js代码,其url地址请求www.baidu.com(或者本地服务器地址),就是一种跨域现象。javascript 抛出异常:  Origin 'null' is therefore not allowed access.html 解决:对于NodeJs来讲,在js服务器页面加入代码:java res.setHea
相关文章
相关标签/搜索