How to tell PHP to use SameSite=None for cross-site cookies?

后端 未结 6 958
刺人心
刺人心 2020-12-16 13:20

According to the article here https://php.watch/articles/PHP-Samesite-cookies and PHP documenation at https://www.php.net/manual/en/session.security.ini.php, There are only

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 13:33

    This method can be helpful for u

    Add header's attributes on nginx below Secure + SameSite=None

    location / {

    proxy_cookie_path / "/; secure; SameSite=none";

    }

    It's working on me!

提交回复
热议问题