首页 > 其他 > 详细

UserWarning: The session cookie domain is an IP address. This may not work as intended

时间:2019-06-17 18:25:52      阅读:216      评论:0      收藏:0      [点我收藏+]

错误信息

/home/hpcm/.virtualenvs/py3/lib/python3.5/site-packages/flask/sessions.py:217: UserWarning: The session cookie domain is an IP address. This may not work as intended in some browsers. Add an entry to your hosts file, for example "localhost.localdomain", and use that instead.

原因

在配置文件中配置了SERVER_NAME导致外部访问的url全部失效

解决

删除 config载入的SERVER_NAME全局字段

  

UserWarning: The session cookie domain is an IP address. This may not work as intended

原文:https://www.cnblogs.com/hpcm/p/11040627.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!