[문제해결] Cookie “trade_imgListPointer” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute.

2021. 12. 4. 22:18웹 서버 구축

Web Console 메시지

Cookie “cookieName” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute.

 

해결방법

1. php

https://github.com/GoogleChromeLabs/samesite-examples/blob/master/php.md

 

GitHub - GoogleChromeLabs/samesite-examples: Examples of using the SameSite cookie attribute in a variety of language, libraries

Examples of using the SameSite cookie attribute in a variety of language, libraries, and frameworks. - GitHub - GoogleChromeLabs/samesite-examples: Examples of using the SameSite cookie attribute i...

github.com

setcookie('name', 'value', ['samesite' => 'None', 'secure' => true]);

2. javascript

;secure

추가

'웹 서버 구축' 카테고리의 다른 글

인증서  (0) 2021.12.31
arrays-in-cookies-php  (0) 2021.12.05
How to Upload Image using PHP  (0) 2021.12.01
특정 디렉터리 umask 설정하기  (0) 2021.11.14
lxd  (0) 2021.11.06