but curl ignores set-cookies from response (response have set-cookies, I check it through Wireshark). How can I overcome this behaviour?
# Netscape HTTP Cookie File
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_::1 FALSE /notifications/ FALSE 0 <manual set cookie name> <cookie value>
When checking if there is a "secure context", which it is if the
connection is to localhost even if the protocol is HTTP, the comparison
for ::1 was done incorrectly and included brackets.
Reported-by: BratSinot on github