On android I found that if a cookie's domain attribute contains scheme(https://) that cookie is not applied.
On the other hand scheme is required in domain string if secure attribute is set.
Currently this library cannot use secure attribute because it use domain attribute in both setCookie's url parameter and domain attribute. They have different scheme requirement.
This PR introduces origin named parameter in setCookie for the above.
On android I found that if a cookie's domain attribute contains scheme(https://) that cookie is not applied. On the other hand scheme is required in domain string if secure attribute is set. Currently this library cannot use secure attribute because it use domain attribute in both
setCookie
's url parameter and domain attribute. They have different scheme requirement.This PR introduces
origin
named parameter insetCookie
for the above.