Skip to content

Problems with http.cors.allow-methods #17483

Closed
@pciccarese

Description

@pciccarese

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."

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions