incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

使用Restful API时出现跨域访问问题

Open LuciaRan opened this issue 7 years ago • 2 comments

具体报错如下: Access to XMLHttpRequest at 'http://XXX.XXX.XXX.XXX.:8080/gremlin' from origin 'http://XXX.XXX.XXX.XXX.:9999' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

我想请教一下相关hugegraph服务器代码应该在哪个目录中修改

版本是hugegraph-server-0.9.2

LuciaRan avatar Nov 11 '19 01:11 LuciaRan

代码位于 hugegraph-api 模块下,server 包是关于 RestServer 本身的配置,api 包下是所有的 API。

Linary avatar Nov 11 '19 06:11 Linary

Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label

github-actions[bot] avatar Jan 01 '22 21:01 github-actions[bot]