跳至内容
菜单
此问题已终结
该问题已被关闭 原因: 离题或不相关
Niyas Raphy (Walnut Software Solutions)2024年10月22日 23时36分59秒
926 查看

We host on premise and expose our website for events and such.  I was finishing up the email marketing part and we ran into this error when accessing externally:

ValueError: Setting 'domain' for a cookie on a server running locally (ex: localhost) is not supported by complying browsers. You should have something like: '127.0.0.1 localhost dev.localhost' on your hosts file and then point your server to run on 'dev.localhost' and also set 'domain' for 'dev.localhost'


This occured when the UTM parameters were added to a link.  The resolution despite the message was to set the upstream host in NGINX to the full domain name.  As in:

	upstream mydomain.com {server localhost:8069;}

Debugging into http where the cookie is set was the most useful part that got me to my answer.

Hopefully this will help someone else.

形象
丢弃
相关帖文 回复 查看 活动
3
7月 25
4112
0
5月 25
802
2
3月 24
2040
0
1月 23
1659
1
1月 23
2451