无法设置和使用跨域Cookie

时间:2020-05-20 15:58:39

标签: cookies cross-domain

该图表示我要实现的目标。 Diagram

我有一个Vue前端,该前端位于localhost:3001,它在端口5000上调用api.localhost,在端口3000上调用auth.localhost。子域已在/etc/hosts中设置。

auth.localhost响应具有一个set-cookie标头,其域为localhost

Set cookie

但是,这不会设置cookie。

Firefox SS of cookies at http://localhost:3001

0 个答案:

没有答案
相关问题