Node Cors
启动 server.js, server2.js 访问 http://localhost:8080/, 会读取 test.html 内容,在 test.html 中跨域访问 http://localhost:8888/ ,允许 跨域访问主要在被访问的服务的 response head 中设置相应属性。
head
meaning
sample
Access-Control-Allow-Origin
允许跨域的 url
http://localhost:8080, * 表示任意 url
Access-Control-Allow-Headers
允许跨域的 headers
需要在 请求的...
more...









