Skip to content

Commit 1bc248b

Browse files
committed
Add http.cors config
1 parent 46c73b2 commit 1bc248b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-compose.elasticsearch.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ services:
1515
- VIRTUAL_HOST=$DDEV_HOSTNAME
1616
- HTTP_EXPOSE=9200:9200
1717
- HTTPS_EXPOSE=9201:9200
18+
- "http.cors.allow-origin=*"
19+
- "http.cors.enabled=true"
20+
- "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization,Access-Control-Allow-Origin,Access-Control-Request-Headers"
21+
- "http.cors.allow-credentials=true"
22+
- "http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE"
1823
labels:
1924
com.ddev.site-name: ${DDEV_SITENAME}
2025
com.ddev.approot: $DDEV_APPROOT

0 commit comments

Comments
 (0)