웹 서버 구축
[문제해결] 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
추가