首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PostgreSQL (pgAdmin)和跨站点cookie警告

PostgreSQL (pgAdmin)和跨站点cookie警告
EN

Stack Overflow用户
提问于 2020-07-14 13:37:33
回答 1查看 689关注 0票数 3

我使用python 3.7.4,django 3.0.6,javascript,Postgres 12.3.1。当我的页面加载到控制台时,有以下警告:

代码语言:javascript
复制
Cookie “PGADMIN_KEY” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/lists/list-name/” because the scheme does not match. list-name
Cookie “PGADMIN_LANGUAGE” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/lists/list-name/” because the scheme does not match. list-name
Cookie “PGADMIN_KEY” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/lists/list-name/” because the scheme does not match. list-name
Cookie “PGADMIN_LANGUAGE” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/lists/list-name/” because the scheme does not match. list-name
Cookie “PGADMIN_KEY” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/static/lists/js/lists.js” because the scheme does not match. lists.js
Cookie “PGADMIN_LANGUAGE” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/static/lists/js/lists.js” because the scheme does not match. lists.js
Cookie “PGADMIN_KEY” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/jsi18n/” because the scheme does not match. jsi18n
Cookie “PGADMIN_LANGUAGE” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/jsi18n/” because the scheme does not match. jsi18n
Cookie “PGADMIN_KEY” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/static/js/common.js” because the scheme does not match. common.js
Cookie “PGADMIN_LANGUAGE” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/static/js/common.js” because the scheme does not match. common.js
Cookie “PGADMIN_KEY” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/static/icons/favicon.png” because the scheme does not match. favicon.png
Cookie “PGADMIN_LANGUAGE” will be soon treated as cross-site cookie against “http://127.0.0.1:8000/static/icons/favicon.png” because the scheme does not match. favicon.png

他们应该是关于cookie的新政策的​。问题是PGADMIN_KEYPGADMIN_LANGUAGE是cookies of PGAdmin (PostgreSQL),我没有显式地使用它们(我的意思是数据库本身使用它们,但是在我的代码中它们没有出现),所以我如何解决这个问题?

  • 这是PGAdmin的一个bug,我所能做的就是等待一个新版本的PGAdmin,在那里这个bug是固定的?
  • 我应该在代码中显式声明它们(哪里?)用SameSite=none; Secure参数?
  • 其他的?

谢谢你的帮助。

PS

我做了另一个相关的问题,有人在一个删除的评论(叹息,不要删除评论,请)说,类似/localhost/被认为与/127.0.0.1:8000/不同。我不知道这能不能帮上忙

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-07-30 08:02:54

我解决了升级到pgAdmin的最后一个版本( PostgreSQL中包含的不是最后一个版本)和删除缓存中存储的cookie的问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62896516

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档