Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http.cors ES 2.3 #17534

Closed
chanserv opened this issue Apr 5, 2016 · 2 comments
Closed

http.cors ES 2.3 #17534

chanserv opened this issue Apr 5, 2016 · 2 comments

Comments

@chanserv
Copy link

chanserv commented Apr 5, 2016

Elasticsearch version:
2.3
JVM version:
1.8.0
OS version:
Windows 7
Description of the problem including expected versus actual behavior:
I have set cors conf in elasticsearch.yml like this
http.cors.enabled : true http.cors.allow-origin : "*" http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length

When requesting elasticsearch from file:///C:/elastic/index.html i got the following error
Request header field Content-Type is not allowed by Access-Control-Allow-Headers

I switched to 2.2 version and i set the same parameters and it works like a charm

Steps to reproduce:
1.Set cors parameters in elasticsearch.yml
2.Request elasticsearch from an url like this: file:///c:/..

@pciccarese
Copy link

I believe this is similar to this:
#17483

@clintongormley
Copy link
Contributor

Closing as duplicate of #17483.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants