A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/elastic/elasticsearch/issues/17483 below:

Problems with http.cors.allow-methods · Issue #17483 · elastic/elasticsearch · GitHub

Elasticsearch version: 2.3.0
JVM version: 1.8.0_31
OS version: MAC OS X 10.10.5
Description of the problem including expected versus actual behavior:
Definition of an accepted a custom header does not seem to work.

Steps to reproduce:

  1. Add the following lines to the configuration file
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, Content-Type, Content-Length, X-User"
  1. Ran an ajax POST request with X-User header.
  2. Getting response "Request header field x-user is not allowed by Access-Control-Allow-Headers in preflight response."

theredpea, tiagocardosos, jbrozena22, lmserrano and bharatvarshneymagic


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4