将http请求标头添加到href链接
问题描述:
我从一些 html
<a href="www.google.com">Apparently you can find things here</a>
但是我想为请求添加一个http请求标头?
But I want to add a http request header to the request?
这是否可能。
答
除了以外,页面无法指定HTTP请求标头对于使用XMLHttpRequest进行的请求。
There is no way for a page to specify HTTP request headers other than for requests made using XMLHttpRequest.