网站首页 » PHP » set-cookie 失败

set-cookie 失败

November 30, 2022 PHP

This Set-Cookie was blocked because it was not sent over a secure-connection and would have overwritten a cookie with Secure attribute

当HTTPS下有了一个Cookie后,再想在同域名的HTTP站点下写入Cookie就会失败,解决办法就是删除HTTPS站点下的Cookie。