我使用python 3.7.4,django 3.0.6,javascript,Postgres 12.3.1。当我的页面加载到控制台时,有以下警告:
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_KEY和PGADMIN_LANGUAGE是cookies of PGAdmin (PostgreSQL),我没有显式地使用它们(我的意思是数据库本身使用它们,但是在我的代码中它们没有出现),所以我如何解决这个问题?
SameSite=none; Secure参数?谢谢你的帮助。
PS
我做了另一个相关的问题,有人在一个删除的评论(叹息,不要删除评论,请)说,类似/localhost/被认为与/127.0.0.1:8000/不同。我不知道这能不能帮上忙
发布于 2020-07-30 08:02:54
我解决了升级到pgAdmin的最后一个版本( PostgreSQL中包含的不是最后一个版本)和删除缓存中存储的cookie的问题。
https://stackoverflow.com/questions/62896516
复制相似问题