相关疑难解决方法(0)

是否可以向iframe src请求添加请求标头?

我知道在JavaScript中进行AJAX调用时,您可以非常轻松地设置HTTP请求标头.

但是,通过脚本将iframe插入页面时,是否也可以设置自定义HTTP请求标头?

<iframe src="someURL"> <!-- is there any place to set headers in this? -->
Run Code Online (Sandbox Code Playgroud)

javascript iframe httprequest

58
推荐指数
3
解决办法
6万
查看次数

标签 统计

httprequest ×1

iframe ×1

javascript ×1