postgresql - 使用 Chrome 浏览器命令将 pgAdmin 4 作为独立应用程序启动

标签 postgresql cookies pgadmin pgadmin-4

我现在有一个严重的问题,因为 pgAdmin 4 作为一个 Web 应用程序,我必须在浏览器中与许多其他选项卡一起使用它。我希望它成为一个独立的应用程序,我可以将其固定到任务栏等。在新的 Chrome 版本中,可以为 Web 应用程序创建快捷方式,最后将其固定到任务栏并在自己的窗口中运行。但仍然存在一个问题。当 pgAdmin4 首次启动时,它似乎创建了一个 token ,该 token 通过 ?key 参数传递给浏览器:

http://127.0.0.1:12345/?key=6d2ed64a-a684-4503-beeb-06074d6263b3

当我现在将此浏览器选项卡保存为应用程序时,我可以将其作为浏览器命令添加到 pgAdmin 4 设置中:

“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”--profile-directory=默认--app-id=hfdebdmclblkieoihljjpjjamgmknckn

enter image description here

问题是:

Chrome 应用程序/快捷方式当然是在没有 ?key 参数的情况下保存的,因此无法创建 cookie,也不会被授权。有人知道如何使用浏览器命令或任何其他解决方法传递 key 吗?

enter image description here

最佳答案

刚刚发现您必须添加此命令行才能将 key 传递给 chrome 应用程序:

“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”--app=%URL%

关于postgresql - 使用 Chrome 浏览器命令将 pgAdmin 4 作为独立应用程序启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52904897/

相关文章:

postgresql - 使用 IN 的 Rails PostgreSQL 语法错误

sql - 将 ResultSet 传递给 Postgresql 函数

postgresql - 有效地找到 a < (max(a) for a given b) 的行

javascript - 我的自定义 JavaScript 函数是 "not a function"?

javascript - 抓取带有请求的网站(post,js?)

postgresql - 错误 :syntax error at or near "%" in postgresql

sql - PgAdmin 函数返回类型

postgresql - 使用 postgres 表序列而不是共享 hibernate_sequence

PHP - 使用下拉列表更改站点主题

postgresql - 与 pgAdmin III 连接时,函数 array_agg(text) 不是唯一的