更改 Ajax POST 的引用者 [英] changing the referrer of an Ajax POST

查看:21
本文介绍了更改 Ajax POST 的引用者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如果使用 jquery 或通用 javascript,我可以从 http ajax 调用中的标头更改引荐来源吗?

Anyone knows if with jquery or general javascript, I can change the referrer from the header in an http ajax call?

基本上我希望它从我的页面发送,但有来自另一个页面的引荐来源.任何信息都会很棒.

basically I want it to be sent from my page but have a referrer from another page. Any information would be great.

推荐答案

浏览器总是会覆盖我所做的测试的引荐来源网址.这意味着您不能更改 ajax 调用的引用者.

The browser will overwrite the referrer always for the tests that I've done. Meaning you can't change the referrer of an ajax call.

这篇关于更改 Ajax POST 的引用者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆