Cookie cross-domain problem

now I have two programs deployed in http://192.168.1.1:3000, http://192.168.1.1:3001
a,b each have a cookie, of the same key assuming that the key is not set for test,domain and defaults to 192.168.1.1. The fact that path is /
a br b assigns the value of test successively will lead to the difference between the
an and b ports of b, which should form a cross-domain help, why does b overwrite the value of a?

Feb.10,2022

cookie can only distinguish between domain names, not ports

http://blog.sina.com.cn/s/blo.

Menu