动态设置请求头 #4488
Closed
huajideshutiao
started this conversation in
General
动态设置请求头
#4488
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
有什么办法能根据访问的url动态设置请求头吗?换个说法,对url进行签名。主要是用在书籍url和目录url中,如果拼接为请求头字符串(url,{请求头}),确实可以访问,但是这个签名和时间有关,超时就比较麻烦了。
我的想法是在请求头中写js,获取baseUrl进行处理然后签名。但是在搜索开始前baseUrl是源url而不是正在请求的url
Beta Was this translation helpful? Give feedback.
All reactions