Setting a cookie on a different domain?

166 views Asked by At

Is it possible to set a cookie on a different domain? If so, what would be the best way to go about doing it? So For example if I was on attackersite.com and wanted to set a cookie called 'name' with a value on victimsite.com

Thanks.

1

There are 1 answers

0
ianaya89 On

You can not do that. Allowing something like this means a big security issue.

If you need to send data to a different domain you could try with a query string value.