这是写的嵌入页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Embed Page Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="embed-container">
<iframe src="http://10.82.49.146:30880/clusters/default/projects/kubesphere-system/pods/ks-console-54bd5bcbc6-clwxz/monitors" frameborder="0" allowfullscreen class="responsive-iframe"></iframe>
</div>
</body>
</html>
当我访问时正确跳转到login页面上,但是当我输入正确的账户密码后,页面还是重新回到登录页面
这是后台日志
<-- GET / 2023/04/14T11:34:47.294
UnauthorizedError: Not Login
at Object.throw (/opt/kubesphere/console/server/server.js:22969:11)
at getCurrentUser (/opt/kubesphere/console/server/server.js:6957:14)
at renderView (/opt/kubesphere/console/server/server.js:71947:7)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /opt/kubesphere/console/server/server.js:40116:7
at async logger (/opt/kubesphere/console/server/server.js:37060:7)
at async /opt/kubesphere/console/server/server.js:31823:26
at async /opt/kubesphere/console/server/server.js:31823:26
at async /opt/kubesphere/console/server/server.js:31823:26
--> GET / 302 1ms 43b 2023/04/14T11:34:47.296
<-- GET /login 2023/04/14T11:34:47.330
--> GET /login 200 5ms 16.91kb 2023/04/14T11:34:47.334
<-- GET /login 2023/04/14T11:34:47.400
--> GET /login 200 6ms 16.91kb 2023/04/14T11:34:47.406
<-- GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-6vpts 2023/04/14T11:34:49.550
--> GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-6vpts 200 16ms 14b 2023/04/14T11:34:49.566
<-- GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-6vpts/log?container=ks-console&tailLines=1000×tamps=true&follow=false 2023/04/14T11:34:49.607
<-- GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-clwxz 2023/04/14T11:34:59.124
--> GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-clwxz 200 26ms 14b 2023/04/14T11:34:59.150
<-- GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-clwxz/log?container=ks-console&tailLines=1000×tamps=true&follow=false 2023/04/14T11:34:59.185
<-- POST /login 2023/04/14T11:35:16.272
--> POST /login 302 107ms 33b 2023/04/14T11:35:16.379
<-- GET / 2023/04/14T11:35:16.405
UnauthorizedError: Not Login
at Object.throw (/opt/kubesphere/console/server/server.js:22969:11)
at getCurrentUser (/opt/kubesphere/console/server/server.js:6957:14)
at renderView (/opt/kubesphere/console/server/server.js:71947:7)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /opt/kubesphere/console/server/server.js:40116:7
at async logger (/opt/kubesphere/console/server/server.js:37060:7)
at async /opt/kubesphere/console/server/server.js:31823:26
at async /opt/kubesphere/console/server/server.js:31823:26
at async /opt/kubesphere/console/server/server.js:31823:26
--> GET / 302 3ms 43b 2023/04/14T11:35:16.408
<-- GET /login 2023/04/14T11:35:16.463
--> GET /login 200 6ms 16.91kb 2023/04/14T11:35:16.469
<-- GET /login 2023/04/14T11:35:16.514
--> GET /login 200 5ms 16.91kb 2023/04/14T11:35:16.519
<-- GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-xsxf6 2023/04/14T11:35:20.247
--> GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-xsxf6 200 20ms 14b 2023/04/14T11:35:20.267
<-- GET /api/v1/namespaces/kubesphere-system/pods/ks-console-54bd5bcbc6-xsxf6/log?container=ks-console&tailLines=1000×tamps=true&follow=false 2023/04/14T11:35:20.297
是否有啥方法解决尼 thanks~