2

我有需要token从子域(account.test.com)设置 cookie()的情况。所以我使用 angular-cookies 实现了它。现在在浏览器 cookie 下,我看到token的是 to value xyz、 path to/和 domain to .test.com

test.com还将 cookie( orId) 设置为 value pqrs、 path to/和 domain to test.com。在test.com开发工具中,我看到设置的 cookieaccount.test.com和我能够读取的位置token,这完全没问题。

现在我有一个用例要删除tokenorId从中删除test.com。我尝试使用 angular-cookies$cookie.remove('token')$cookie.remove('orId'). 我看到只有orId被删除但没有token。那么如何从父域中删除tokenset by 。account.test.comtest.com

4

0 回答 0