2 years ago

#63867

test-img

copenndthagen

Specifying another domain for a cookie

On the server side (say Host1.com), where the Cookie (say Cookie1) is created and Domain is explicitly specified to some other domain (say Host2.com), does it have any meaning at all ?

I mean by doing so, is there any possibility that this Cookie1 would get attached to any requests made to Host2 at all (considering it to be like a 3rd party cookie) ?

I understand that with the SameSite option, we can control the scenarios where this cookie can get attached/sent along to the server from UI...But I assume all those scenarios would always be related to Host1 and not Host2 (despite us specifying the domain explicitly to Host2.com)

javascript

ajax

cookies

setcookie

0 Answers

Your Answer

Accepted video resources