当前位置:网站首页>【教程】chrome关闭跨域策略cors、samesite,跨域带上cookie
【教程】chrome关闭跨域策略cors、samesite,跨域带上cookie
2022-07-03 02:17:00 【云牧青】
谷歌浏览器允许跨域origin,disable samesite,方便本地开发调试,测试csrf跨站请求伪造漏洞
写稿时间:2022年6月30日
犹记得两年前,测试csrf漏洞时得心应手。现如今,csrf已成历史
chrome,Firefox更新迭代到现在,已将跨域请求打到苟延残喘
苦了本地调试的开发人员,前端一个端口,后端一个端口,就跨域无法带cookie了
网上广为流传的开启跨域的方法,以以下命令启动chrome:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="D:\ChromeDevUserData"
这会启动一个和你原本chrome互不干扰的浏览器,但目前实测最新版浏览器,依旧不能复现csrf,但是用以下增强版,似乎是能解决本地调试前后端时的跨域问题的
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-site-isolation-trials --disable-web-security --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure --user-data-dir="D:\ChromeDevUserData"
依旧不能复现csrf,想复现,只能使用旧版chrome
旧版chrome可以在这里直接下载:https://www.chromedownloads.net/chrome64win-stable/
如果不想用百度云盘,而且想在官网下载的话,可以这样操作
- 根据chrome版本号,找到内部的版本号
https://omahaproxy.appspot.com/
- 根据内部版本号,去下载离线包
https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html
亲测可用的版本:722274,19年12月的版本
选win64 zip使用上述增强参数启动即可
边栏推荐
- In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?
- 机器学习笔记(持续更新中。。。)
- Basic operation of view
- Machine learning notes (constantly updating...)
- Producer consumer model based on thread pool (including blocking queue)
- The sandbox explains its vision for the meta universe platform
- [shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
- Query product cases - page rendering data
- Button button adaptive size of wechat applet
- Leetcode (540) -- a single element in an ordered array
猜你喜欢

Coroutinecontext in kotlin

In 2022, 95% of the three most common misunderstandings in software testing were recruited. Are you that 5%?

Thread safe singleton mode

stm32F407-------DMA

Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly
![[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)](/img/41/2413af283e8f1db5d20ea845527175.gif)
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)

线程安全的单例模式

Pytorch convolution network regularization dropblock

全链路数字化转型下,零售企业如何打开第二增长曲线

基于线程池的生产者消费者模型(含阻塞队列)
随机推荐
[camera topic] turn a drive to light up the camera
udp接收队列以及多次初始化的测试
Deep learning notes (constantly updating...)
Cancellation of collaboration in kotlin, side effects of cancellation and overtime tasks
easyExcel
Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux
When the epidemic comes, how to manage the team as a leader| Community essay solicitation
Visualisation de l'ensemble de données au format yolov5 (fichier labelme json)
Job object of collaboration in kotlin
[Yu Yue education] China Ocean University job search OMG reference
Anna: Beibei, can you draw?
Iptables layer 4 forwarding
Producer consumer model based on thread pool (including blocking queue)
awk从入门到入土(2)认识awk内置变量和变量的使用
机器学习笔记(持续更新中。。。)
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
COM和CN
How do browsers render pages?
[shutter] hero animation (hero realizes radial animation | hero component createrecttween setting)
创建+注册 子应用_定义路由,全局路由与子路由