Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jviO5-0006y6-Bf for pgsql-general@arkaria.postgresql.org; Wed, 15 Jul 2020 14:27:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jviO3-0007O1-Ts for pgsql-general@arkaria.postgresql.org; Wed, 15 Jul 2020 14:27:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jviO2-0007Nu-8M for pgsql-general@lists.postgresql.org; Wed, 15 Jul 2020 14:27:55 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jviNy-0003QS-V7 for pgsql-general@postgresql.org; Wed, 15 Jul 2020 14:27:53 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BAFCE5C00C9; Wed, 15 Jul 2020 10:27:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 15 Jul 2020 10:27:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=7 crp1ALArj9o9h4eT0ii6Cy+rD1hctNUjpLG0LiMxEg=; b=Rto68u5Lbf2LtzDZS 7oVZWjsh/2HiBB/nMGW5S6WqKVzAdwr3Dmh0dUmiBGPrH29f6MZzrqZtBUi7tyWn dLRNsVnStWvNCozueyG5ajw3tQfBJ8DGTOcElzbQh+gRzhphQ74nvXBaNPxe05zw iUaC0fCekyYy++vnrg6tFLAs9cSZqH4octv4oXImfhGN7a9J1d4P+L1HC8wep6XX dlR3wvAgZXfmSQ52vT+s/Oz/aNrlSNNjRSDkMpKLxG0YtMDRcvV2rfyMZhUb1y/r uDi67II9/p8oKq4pDkFX0XJ7pmcFwWv1Ahwa3G3KZiXImRRJe3KmP5SzgHX8Sbex jXR/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=7crp1ALArj9o9h4eT0ii6Cy+rD1hctNUjpLG0LiMx Eg=; b=RNQW9hbzjrmkBGYxN5Z6lncJbi5SWvDI9WqaFZO/Pvqhf+jiGL305INk6 VDcw33OuTnQcISOOrCx+gfnVxHWgwqZya3MhBzE4Ec9ino1WyaS9Wb+7mEaEO5JC M7cXeOKRzUP+0sezNq2NnPVfR/3gwheWdvydcKzBaKCdD4X/dCYaJt9x2deYx+h1 fZcBgRFKJFHNiGpNQs/yB9Qlgrot5AlsLz1IHWWENd43SG87tzKeNnVYBW8I2QMg YeKwlkyNZgbXtVKx+R3LUkxZwEps9UO3XSR8cJPe9Y/nbVjrywzfVQubob/3K5kn cSUgxSQ43Kz+dSlwvyxIp+qj1SCJw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrfedvgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedtfeejffejke evjeefleeutddtieehhffhhffgjedvfedujeeutdduueeuuefgteenucffohhmrghinhep uddvjedrtddrtddruddptghhrhhomhhiuhhmrdhorhhgpdhpohhsthhgrhgvshhqlhdroh hrghenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvh gvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id E5E0C306005F; Wed, 15 Jul 2020 10:27:48 -0400 (EDT) Subject: Re: Cross-site cookies warnings To: Fabio , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Wed, 15 Jul 2020 07:27:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/15/20 2:34 AM, Fabio wrote: > I'm using python 3.7.4, django 3.0.6, javascript, Postgres 12.3.1 > pgadmin 4.21 windows7. When my page loads on the console there are these > warnings: > > |Cookie“PGADMIN_KEY”will be soon treated ascross-site cookie against > “http://127.0.0.1:8000/lists/list-name/” because the scheme does not > match. list-nameCookie“PGADMIN_LANGUAGE”will be soon treated > ascross-site cookie against “http://127.0.0.1:8000/lists/list-name/” > because the scheme does not match. list-nameCookie“PGADMIN_KEY”will be > soon treated ascross-site cookie against > “http://127.0.0.1:8000/lists/list-name/” because the scheme does not > match. list-nameCookie“PGADMIN_LANGUAGE”will be soon treated > ascross-site cookie against “http://127.0.0.1:8000/lists/list-name/” > because the scheme does not match. list-nameCookie“PGADMIN_KEY”will be > soon treated ascross-site cookie against > “http://127.0.0.1:8000/static/lists/js/lists.js” because the scheme does > not match. lists.jsCookie“PGADMIN_LANGUAGE”will be soon treated > ascross-site cookie against > “http://127.0.0.1:8000/static/lists/js/lists.js” because the scheme does > not match. lists.jsCookie“PGADMIN_KEY”will be soon treated ascross-site > cookie against “http://127.0.0.1:8000/jsi18n/” because the scheme does > not match. jsi18nCookie“PGADMIN_LANGUAGE”will be soon treated > ascross-site cookie against “http://127.0.0.1:8000/jsi18n/” because the > scheme does not match. jsi18nCookie“PGADMIN_KEY”will be soon treated > ascross-site cookie against “http://127.0.0.1:8000/static/js/common.js” > because the scheme does not match. common.jsCookie“PGADMIN_LANGUAGE”will > be soon treated ascross-site cookie against > “http://127.0.0.1:8000/static/js/common.js” because the scheme does not > match. common.jsCookie“PGADMIN_KEY”will be soon treated ascross-site > cookie against “http://127.0.0.1:8000/static/icons/favicon.png” because > the scheme does not match. favicon.pngCookie“PGADMIN_LANGUAGE”will be > soon treated ascross-site cookie against > “http://127.0.0.1:8000/static/icons/favicon.png” because the scheme does > not match. favicon.png |They should come from thenew policy about cookies . The problem is|PGADMIN_KEY| and|PGADMIN_LANGUAGE| are cookies of PGAdmin and I don't use > them explicitly (I mean evidently the database himself use them but > in my code they don't appear). Is this a bug of pgadmin? As I said in my SO comment pgAdmin != Postgres and the database is not setting these. These are cookies set when you use pgAdmin. If you want this dealt with file an issue here: https://redmine.postgresql.org/projects/pgadmin4/issues. > > > Then I upgraded to pgadmin 4.23 and now I have only these warnings: > > > 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. 2 list-name > > 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_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_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_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 > > Also I see a new cookie (PGADMIN_INT_KEY) but it doesn't give problems. > So there's some way to solve this problem or I just have to wait the new update? > > thank you > > || > -- Adrian Klaver adrian.klaver@aklaver.com