How to Enable CORS (Cross Origin Resource Sharing)


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

- 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.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 or it is currently impossible?