使用docker 安装的NebulaGraph Studio,然后iframe嵌入此登录地址,火狐可以connect,但是谷歌点击connect 报错named cookie not present #6002
hanyuanzhong
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
使用docker-compose安装 NebulaGraph 和 NebulaGraph Studio


然后通过浏览器 http://ip:7001可以正常访问,然后将此地址通过iframe嵌入到vue的页面中,正常显示登录,但是点击登录会报错:
检查发现
在接口[http://172.20.10.5:7001/api/config/llm的时候,请求中没有cookie信息]
如何设置跨域的同源问题呢,
需要修改docker-compose的什么参数呢,或者进入容器内部,修改/app/etc/studio-api.yaml
将CorsOrigins: ,改为 CorsOrigins: [“*”]之后,直接访问和通过iframe访问都不可以了
vue页面代码:

Beta Was this translation helpful? Give feedback.
All reactions