AWS弹性搜索和CORS [英] AWS Elasticsearch and CORS

查看:219
本文介绍了AWS弹性搜索和CORS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



https://aws.amazon.com/elasticsearch-service/



很容易设置。基本上只是击中部署。我不幸得不到任何Elasticsearch GUI连接(ElasticHQ,Elasticsearch Head),因为在AWS构建中没有启用CORS,并且没有办法更改弹性搜索配置或安装我可以看到的插件。有人知道如何在AWS上更改这些选项?

解决方案

情况对任何人来说都是有用的 - 您可以使用 Chrome插件



尽管(在撰写本文时),ElasticHQ和Elasticsearch Head仍然无法正常使用AWS Elasticsearch,调用 / _ cluster / state ,目前不是支持的AWS ElasticSearch操作



禁用CORS并在 / _ cluster / state 上执行 GET 返回

  {
消息:您的请求:'/ _cluster / state'是不允许的。
}

某些功能仍然适用于ElasticHQ,但我无法将Elasticsearch Head工作。


I'm trialing the AWS Elasticsearch service:

https://aws.amazon.com/elasticsearch-service/

Very easy to setup. Basically just hit deploy. I unfortunately can't get any of the Elasticsearch GUI's to connect (ElasticHQ, Elasticsearch Head) as CORS is not enabled in the AWS build, and there is no way to change the elasticsearch config, or install plugins that I can see.

Does anyone know how to change these options on AWS?

解决方案

In case it's useful to anyone else - you can disable CORS for testing purposes using a Chrome plugin.

ElasticHQ and Elasticsearch Head still won't work properly with AWS Elasticsearch though (at the time of writing) as they make calls to /_cluster/state which is not currently one of the supported AWS ElasticSearch operations.

Disabling CORS and performing a GET on /_cluster/state returns

{
    Message: "Your request: '/_cluster/state' is not allowed."
}

Some functionality still works in ElasticHQ but I'm unable to get Elasticsearch Head to work.

这篇关于AWS弹性搜索和CORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆