• Chrome91版本 SameSite cookies 被移除后的解决方法


    因为开发环境需要, 我们会把Chrome浏览器的same-site-by-default-cookies和cookies-without-same-site-must-be-secure两项都在flag里禁用了
    Chrome 91版本, Chromium直接把选项给关了而且设置成默认开启.
    但是文中还写了"In Chrome 94, the command-line flag --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure will be removed", 也就是说这个SameSiteByDefaultCookies和CookiesWithoutSameSiteMustBeSecure还没有被移除, 但是这个所谓的command-line flag是个什么东西呢?
    这个command-line flag是指在启动Choromium时所带的参数, 在windows中可以通过修改应用的快捷方式目标属性来给启动的应用加上参数.
    Chromium支持的command-line flag, 具体操作过程如下:
    在右击Chrome/Edge的快捷方式, 点击"属性".
    在"目标(Target)"属性中末尾加上
    --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure
     
    Mac 设备下首先关闭浏览器, 打开终端输入以下指令
    open -a "Google Chrome" --args --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure

    Microsoft Edge
    open -a "Microsoft Edge" --args --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure
  • 相关阅读:
    HackerRank "Arithmetic Expressions" !
    HackerRank "Poker Nim"
    HackerRank "Nimble Game"
    HackerRank "Misère Nim"
    HackerRank "Triangle Numbers"
    HackerRank "Flipping the Matrix"
    HackerRank "Chessboard Game, Again!"
    HackerRank "Tower Breakers, Again!"
    HackerRank
    HackerRank "Richie Rich"
  • 原文地址:https://www.cnblogs.com/terrylin/p/14894121.html
Copyright © 2020-2023  润新知