首页 > 解决方案 > 此 set-cookie 被阻止,因为它的域包含 docker 和 nginx

问题描述

第一次使用 docker 和 nginx 反向代理。

设置

麻烦

每次我向响应中添加 cookie 时,Set-Cookie 都会被前面忽略。 在此处输入图像描述

告诉我:

This Set-Cookie was blocked because its Domain attribute was invalid with regards to the current host url.

我试过的

正如我所说,我是这个设置的新手,无法确定问题是来自 nginx 还是 cookie 配置。

编辑:它实际上适用于邮递员。

标签: dockervue.jssymfonynginxcookies

解决方案


推荐阅读