在 Chrome 中打开 PgAdmin 4

opening PgAdmin 4 in Chrome

我想在 Chrome 中打开 PgAdmin 4。我右键单击 Windows 系统托盘中的图标并选择配置... 在浏览器命令输入中,我添加了以下内容:

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

程序一直在加载,但不会出现。我该怎么办?

FAQ:

中解决了新版本 4.28 的一个奇怪行为

When I launch pgAdmin 4 v4.28 or later on Windows, the loading page never closes. Why?

pgAdmin 4 v4.28 includes additional security features, one of which is intended to prevent security issues caused by Content Sniffing.

Unfortunately some Windows systems are mis-configured such that this causes Javascripts used by pgAdmin to fail to load. Opening the developer tools on your browser will show an error similar to this:

Refused to execute script from 'http://127.0.0.1:57313/static/vendor/require/require.min.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

(index):39 Uncaught ReferenceError: require is not defined at (index):39

This will occur when the value of the registry key at HKEY_CLASSES_ROOT\.js\Content Type is set to text/plain. To resolve the issue, use the Registry Editor and reset the value of HKEY_CLASSES_ROOT\.js\Content Type to:

text/javascript

Finally, restart the pgAdmin server.

密钥的正确名称是 HKEY_CLASSES_ROOT\.js\Content Type

在我通过服务完成此修改后重新启动 PostgreSQL 服务器。

此外,在我能够在浏览器中成功加载新的 pgAdmin 选项卡之前,我必须停止任务管理器中的 pgAdmin 进程。