I'm trying to log to logstash from my client. When I try to send a post request to the logstash url, I am encountering a cors issue. I set the correct headers for the post request in the client. My logstash conf file looks like this;
input {
http {
response_headers => {
"Content-Type" => "application/x-www-form-urlencoded"
"Access-Control-Allow-Origin" => "*"
}
}
}
filter {
}
output {
elasticsearch {
hosts => ["localhost:9200"]
}
}
What else can I do?