当前位置:网站首页>【教程】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使用上述增强参数启动即可
边栏推荐
- 通达OA v12流程中心
- awk从入门到入土(0)awk概述
- [camera special topic] Hal layer - brief analysis of addchannel and startchannel
- 人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
- iptables 4层转发
- awk从入门到入土(3)awk内置函数printf和print实现格式化打印
- stm32F407-------IIC通讯协议
- Detailed introduction to the usage of Nacos configuration center
- Return a tree structure data
- [Yu Yue education] reference materials of love psychology of China University of mining and technology
猜你喜欢

MySQL学习03

Query product cases - page rendering data
![[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)](/img/66/0fda43da0d36fc0c9277ca86ece252.jpg)
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
![[shutter] shutter debugging (debugging control related functions | breakpoint management | code operation control)](/img/fe/c053f8d116eb307733177283a26318.png)
[shutter] shutter debugging (debugging control related functions | breakpoint management | code operation control)
![[shutter] pull the navigation bar sideways (drawer component | pageview component)](/img/6f/dfc9dae5f890125d0cebdb2a0f4638.gif)
[shutter] pull the navigation bar sideways (drawer component | pageview component)

Deep learning notes (constantly updating...)

Redis: simple use of redis

Use go language to realize try{}catch{}finally

Redis:Redis的简单使用
![[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数](/img/06/ab333a4752de27eae2dd937cf579e2.png)
[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数
随机推荐
Awk from entry to burial (1) awk first meeting
通达OA 首页门户工作台
SPI mechanism
4. Classes and objects
RestCloud ETL 跨库数据聚合运算
Iptables layer 4 forwarding
[camera topic] how to save OTP data in user-defined nodes
Trial setup and use of idea GoLand development tool
Stm32f407 ------- IIC communication protocol
Modify table structure
Cancellation of collaboration in kotlin, side effects of cancellation and overtime tasks
easyPOI
[camera topic] turn a drive to light up the camera
Socket编程
Leetcode(540)——有序数组中的单一元素
es6 filter() 数组过滤方法总结
Kotlin middle process understanding and Practice (I)
awk从入门到入土(2)认识awk内置变量和变量的使用
awk从入门到入土(3)awk内置函数printf和print实现格式化打印
单词单词单词