Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
คำถามนี้ถูกปิดแล้ว เนื่องจาก: นอกประเด็นหรือไม่เกี่ยวข้อง โดย Niyas Raphy (Walnut Software Solutions) เมื่อ 22/10/2024 23:36:59
1016 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
naked domain set up แก้ไขแล้ว
3
ก.ค. 25
4329
0
พ.ค. 25
892
2
มี.ค. 24
2162
0
ม.ค. 23
1754
1
ม.ค. 23
2557