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

Error when sending logs to elasticsearch #2

Open
jhiemer opened this issue Dec 1, 2015 · 0 comments
Open

Error when sending logs to elasticsearch #2

jhiemer opened this issue Dec 1, 2015 · 0 comments

Comments

@jhiemer
Copy link

jhiemer commented Dec 1, 2015

Hi,
first of all thank you for this cool library. Installation and configuration are very easy to manage. The only issue I have is that I get the following error, when sending logs to ES.

XMLHttpRequest cannot load http://X.Y.Z.W:9200/_bulk. Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response.

The origin is that all my outgoing requests to contain an authorisation token in the header, when talking to different endpoint in the application and as I am doing a CORS request not against localhost, the preflight OPTIONS request is not allowed by ES. The question now is, if this should be cleaned up before creating the request, or silently accepting the header on the ES side.

What do you think?

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

1 participant