要跳转到其它网站上,但要将 token 加到请求头内,有没有什么办法?
|
no1xsyzyApr 2, 2021
1
跳转不能加任意头,只有 AJAX 请求可以加任意头。
|
|
killergunApr 2, 2021
2
跳转应该只能加在 url 上
|
|
shakarakaApr 2, 2021
3
啥意思?
请求第三方 API ?如果是这样的话直接带上就好了啊(要 CORS )。 url 跳转只能用 GET 请求参数带上 |
|
zm8m93Q1e5otOC69Apr 2, 2021
4
跳转不能
|
|
BalloonwjApr 2, 2021
5
下一个浏览器插件就可以了,例如 SmartHeader 。
|
|
leven87Apr 2, 2021
6
For the description, I don't know. But request always could be based on http protocol, you could add token in the header part.
|
|
shellusApr 2, 2021
7
chrome 扩展:ModHeader
|
|
opengpsApr 2, 2021
8
使用 js 函数控制跳转,避免 a 标签直接跳转
|
|
sxbxjhwmApr 2, 2021
9
自己搭一个反向代理
|
|
Alchemist13Apr 2, 2021
10
@leven87 兄弟,为什么要在中文社区说英语,你会中文的吧 233
|
|
Te11UAApr 2, 2021
11
modheader 之类的 chrome 插件就能干
|
|
leven87Apr 2, 2021
12
@Alchemist13 I just practice my English skill and don't want to forget. As well people here can understand.
|