将http请求标头添加到href链接 [英] Adding http request header to a a href link
本文介绍了将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.
这篇关于将http请求标头添加到href链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文