当前位置:网站首页>【问题篇】浏览器get请求带token
【问题篇】浏览器get请求带token
2022-07-26 19:59:00 【小z*】
场景:接口访问肯定是需要安全校验的,所有每次访问会在header里面带上token进行请求,当我们是get请求时可以直接通过浏览器访问即可,浏览器访问默认是get请求,现在有一个导入功能,使用接口访问工具postman之类的测试时,返回的会是二进制,并不是我想要的文件流,但是想要浏览器访问的话,又需要带token,这篇记录一下怎么让浏览器访问时在header里面带token。
准备工具:
- 谷歌浏览器
- modify-headers-for-google插件
modify-headers-for-google插件需要到谷歌商店下载,但是不翻墙的话,下载不了,推荐另一个下载商店,扩展迷 。

1、下载之后解压,得到一个 crx文件
2、进入谷歌商店,进入扩展管理

3、打开开发者模式

4、直接将crx文件拖入该界面
5、点击图钉按钮
6、生成快捷图标
7、点击,进入插件界面
8、点击右上角加号,新生成一行输入框,填写如下参数,action为add。name和value自行输入,我的需求是在header里面加token

9、填写完成,点击save按钮

10、点击enable开启按钮
11、最后点击左上角启用按钮即可
12测试一下:

结果:浏览器get请求header里面携带token调用成功。
边栏推荐
- 分组卷积(Group Converlution)
- Task 2 kaggle diabetes detection
- [Delphi] different platform descriptions of borderstyles of FMX form
- PSPICE 仿真石英晶体振荡电路
- New features of ES6
- Numpy中ndarray的常见操作
- Face recognition and fingerprint recognition are weak? Pentagon develops long-distance heartbeat recognition
- 让华为吃了败诉的CNEX Labs到底有何来头?
- Applied materials announced that it would acquire international electric with us $2.2 billion in cash
- Houdini finds the midpoint and connects the points to form a line
猜你喜欢

Bean injection and lifecycle

Centos7 about Oracle RAC 11gr2 deployment disk partition

Software testing - development test content specification (project test template)

Leetcode-300 longest increasing subsequence

MPLS multi protocol label switching technology
![[interview brush 101] dynamic planning 1](/img/aa/cf9326d0a4363e96f4e2f1c6079c13.png)
[interview brush 101] dynamic planning 1

81. (cesium home) cesium modifies the gray background (default blue)

How to assemble a registry?

TinUI发展历程

CentOS7关于Oracle RAC 11GR2部署磁盘分区问题
随机推荐
Chat software project development 2
全球最聪明50家公司公布:中国厂商占据近半,华为名列第一
"Enterprise management" sincere crm+ - integrated management of enterprise business processes
confd+etcd实现高可用自动发现
Summary of message queue knowledge points
The lawyer team of the US Department of justice asked the judge to refuse to accept Huawei's lawsuit
Houdini 笔记2
Buu brush inscription 2
Arpspoof installation and use
Leetcode's question brushing -- List summary
YGG cooperates with my pet hooligan, AMGI's flagship NFT project, to enter the rabbit hole
为什么 ThreadLocal 可以做到线程隔离?
[record of question brushing] 22. bracket generation
深度可分离卷积(DepthwiseSeparableConvolution):Depthwise卷积与Pointwise卷积
BGP--边界网关协议
20220726
Numpy中ndarray的常见操作
MPLS multi protocol label switching technology
When there are many query fields, you can add ordinary query and advanced query
It is said that HP / Dell / Microsoft / Amazon are considering transferring some hardware production lines outside the mainland