How to Enable CORS (Cross Origin Resource Sharing)

#1

I tried to put this in docker-compose.yml but didn’t work.

environment:
- cluster.name=odfe-cluster
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- “ES_JAVA_OPTS=-Xms512m -Xmx512m” # minimum and maximum Java heap size, recommend setting both to 50% of system RAM

  - http.cors.enabled=true
  - http.cors.allow-origin=http://localhost:1358,http://127.0.0.1:1358
  - http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
  - http.cors.allow-credentials=true
  - opendistro_security.ssl.http.enabled=false

Does Open Distro supports CORS with different config keys like opendistro_security.xxx or it is currently impossible?