1.什么是Origin header
使用跨域url,会报
Missing required request header. Must specify one of: origin,x-requested-with
参考: https://www.jianshu.com/p/ccc4416ea298
Origin: ""
Origin: "<schema>://<host>[:port]"
// 例如
Origin: "https://baidu.com"
// 错误示范,包含了路径信息
Origin: "https://baidu.com/"
通过https://cors-anywhere.herokuapp.com/+your server path可以实现跨域
但是这样只能postman和浏览器可以,React上面会报404
2. 什么是跨域
参考: https://segmentfault.com/a/1190000015597029