Dashboard-Server activity-Details does not work if pgAdmin4 is startet per Hyperlink from an other host

From: <Harald(dot)Immerheiser(at)RUV(dot)de>
To: <pgadmin-support(at)postgresql(dot)org>
Subject: Dashboard-Server activity-Details does not work if pgAdmin4 is startet per Hyperlink from an other host
Date: 2019-03-29 12:38:11
Message-ID: 1000a47289504262a6af7019c5f715d3@RUV.DE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi,

i use a link in a Wiki on an other host to start a pgAdmin Session in my browser.
If i open the Details for a session in the Server activity window on the Dashboard, i get an exception in the Browser (Firefox):

DOMException: Permission denied to access property "pgAdmin" on cross-origin object

and a hint to code snippet in pgadmin_commons.js:

var t = window.opener ? window.opener.pgAdmin.Browser : window.top.pgAdmin.Browser,

The problem diappears if i set window.opener=null; in the js-console in developer tools.
If i start pgAdmin in the addressline of the Browser there is no Problem.

Regards
Harald Immerheiser

Browse pgadmin-support by date

  From Date Subject
Next Message mickey 2019-04-01 18:23:01 pgadmin4 Edit and "Save" data
Previous Message Dave Page 2019-03-29 11:36:50 Re: pgAdmin in a multi DC self service context