Referer使用
https://mohen.blog.csdn.net/article/details/123477445
Origin使用
https://mohen.blog.csdn.net/article/details/123477638
两者区别
- referer显示来源页面的完整地址,而origin显示来源页面的origin: protocal+host,不包含路径等信息,也就不会包含含有用户信息的敏感内容
- referer存在于所有请求,而
https://mohen.blog.csdn.net/article/details/123477445
https://mohen.blog.csdn.net/article/details/123477638