当前位置:网站首页>The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies
The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies
2022-07-28 05:08:00 【Jason–json】
On Monday morning, when I turn on my computer to prepare for the development project , Suddenly found that the website login jump is abnormal , Why can't I log in? I always jump back to the login page . After eliminating the reason of the back end through packet capturing , Find the backend set-cookie There is no effect , All of a sudden Chrome Disable third parties Cookies The plan for , open Edge The update record of has been automatically updated to Chromium 91 了 .
Because the development environment needs , We put the browser's same-site-by-default-cookies and cookies-without-same-site-must-be-secure Both flag It's banned in the . But update to 91 After version , Chromium Directly turn off the option and set it to on by default , Then there is no way in flag Set up inside. .
Solution
1.
lower than 91 Version of Chrome browser :
Chrome Medium access address chrome://flags/ Search for samesite take same-site-by-default-cookies, and SameSite by default cookies These two Set to Disabled Restart the project after the browser . By default, this setting will not specify SameSite Property request SameSite=Lax To deal with it .

2. window,91 Version and above Chrome browser :( programme 1 The settings in 91 Version has been Chorme remove )
Windows: open Chrome Properties of shortcut , stay The goal is Add
--disable-features=SameSiteByDefaultCookiesOr add
--flag-switches-begin --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure --flag-switches-end, Click ok ,( Be careful !!! Be sure to close all browsers , Be sure to add a few spaces after the goal ) Then restart the browser .

Mac:Mac The system can solve this problem by opening the browser with parameters on the command line , You must close all browser windows and sign out Operate after browser .
- Turn on Chrome command :
open -a "Google Chrome" --args --disable-features=SameSiteByDefaultCookies - Turn on Chromium edition Edge Browser commands :
open -a "Microsoft Edge" --args --disable-features=SameSiteByDefaultCookies

3. 94 And above Chrome browser
Chromium Project website Mentioned in 94 Version disable settings via the command line SameSite The default method will be removed , Arrival plan 1 And solution 2 Will not be able to use , It can be passed later nginx And other agent tools or software turn cross domain requests into non cross domain requests to solve the problem . If you want to work in the development environment in the future , Honestly https Maybe the simplest way .
thank ! https://juejin.cn/post/6967695146322247716 And https://gadzan.com/chrome-edge-91hou
边栏推荐
- Program life | how to switch to software testing? (software testing learning roadmap attached)
- Testcafe provides automatic waiting mechanism and live operation mode
- C language classic 100 question exercise (1~21)
- Have you learned the common SQL interview questions on the short video platform?
- CPU and memory usage are too high. How to modify RTSP round robin detection parameters to reduce server consumption?
- Research on the design of robot education in stem course
- 【内功心法】——函数栈帧的创建和销毁(C实现)
- How to send and receive reports through outlook in FastReport VCL?
- RT_ Use of thread message queue
- Look at the experience of n-year software testing summarized by people who came over the test
猜你喜欢

Dcgan:deep volume general adaptive networks -- paper analysis

Data security is gradually implemented, and we must pay close attention to the source of leakage

Win10 machine learning environment construction pycharm, anaconda, pytorch

Testcafe's positioning, operation of page elements, and verification of execution results

The go zero singleton service uses generics to simplify the registration of handler routes
![[high CPU consumption] software_ reporter_ tool.exe](/img/3f/2c1ecff0a81ead0448e1215567ede7.png)
[high CPU consumption] software_ reporter_ tool.exe

Analyze the emotional elements contained in intelligent sweeping robot

数据安全逐步落地,必须紧盯泄露源头

Array or object, date operation

Activation functions sigmoid, tanh, relu in convolutional neural networks
随机推荐
【CVPR2022】Lite Vision Transformer with Enhanced Self-Attention
Message forwarding mechanism -- save your program from crashing
Redis配置文件详解/参数详解及淘汰策略
【ARIXV2204】Neighborhood attention transformer
Interpretation of afnetworking4.0 request principle
Analyze the emotional elements contained in intelligent sweeping robot
【CVPR2022 oral】Balanced Multimodal Learning via On-the-fly Gradient Modulation
The default isolation level of MySQL is RR. Why does Alibaba and other large manufacturers change to RC?
Supervisor series: 5. Log
How to quickly locate bugs? How to write test cases?
Comprehensively analyze the differences between steam and maker Education
塑料可以执行GB/T 2408 -燃烧性能的测定吗
Clickhouse pit filling note 2: the join condition does not support non equal judgments such as greater than and less than
从微服务基本概念到核心组件-通过一个实例来讲解和分析
(manual) [sqli labs27, 27a] error echo, Boolean blind injection, filtered injection
这种动态规划你见过吗——状态机动态规划之股票问题(中)
Table image extraction based on traditional intersection method and Tesseract OCR
MySQL(5)
Youxuan database participated in the compilation of the Research Report on database development (2022) of the China Academy of communications and communications
Read the paper -- a CNN RNN framework for clip yield prediction