如何在 javascript 中获得 HTTP_ORIGIN?
How do I get HTTP_ORIGIN in javascript?
我知道您可以在浏览器中使用 document.referrer
... 在 Javascript 运行时获取引荐来源网址...但是如何获取 HTTP_ORIGIN 我看到在 headers?
中通过了
https://developer.mozilla.org/en-US/docs/Web/API/Document/origin
看起来 Chrome 是唯一可以让您获得该功能的浏览器。
我知道您可以在浏览器中使用 document.referrer
... 在 Javascript 运行时获取引荐来源网址...但是如何获取 HTTP_ORIGIN 我看到在 headers?
https://developer.mozilla.org/en-US/docs/Web/API/Document/origin
看起来 Chrome 是唯一可以让您获得该功能的浏览器。