我在1001端口运行nginx。我正在尝试使用反向代理在nginx下运行密钥斗篷。以下是nginx配置的更改。
server {
listen 1001;
server_name _;
root /usr/share/nginx/html;
location ~ /auth {
proxy_pass http://localhost:8080;
}
}
下面是我运行的启动密钥斗篷服务器的命令。
nohup ./kc.sh start-dev --hostname localhost:1001 --http-relative-path /auth &
我收到了欢迎页面。如果单击“管理控制台”,则会出现以下错误
The source list for the Content Security Policy directive 'frame-src' contains an invalid source: 'http://localhost:1001:1001'
如果我通过删除1001来运行以下命令。我可以看到我期待的登录页面。
nohup ./kc.sh start-dev --hostname localhost --http-relative-path /auth &
请让我知道在上述情况下我做错了什么。提前感谢:)
我期待着登录页面,但我在控制台中得到了以下错误。
内容安全策略指令“frame src”的源列表包含无效的源:“”http://localhost:1001:1001'