You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: