suifff opened a new issue #1930:
URL: https://github.com/apache/apisix-dashboard/issues/1930
### Issue description
I used docker deployment, and apisix-dashboard was upgraded from 2.1 to 2.6
### Environment
docker-compose.yml
~~~
version: "3"
services:
apisix:
#image: apache/apisix:2.0-alpine
image: apache/apisix:2.5-alpine
restart: always
volumes:
- ./apisix_log:/usr/local/apisix/logs
- ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
depends_on:
- etcd
##network_mode: host
ports:
- "80:9080/tcp"
- "443:9443/tcp"
# - "9080:9080/tcp"
# - "9443:9443/tcp"
networks:
apisix:
ipv4_address: 172.20.5.11
etcd:
image: bitnami/etcd:3.4.9
user: root
restart: always
volumes:
- ./etcd_data:/etcd_data
environment:
ETCD_DATA_DIR: /etcd_data
ETCD_ENABLE_V2: "true"
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
ports:
- "2379:2379/tcp"
networks:
apisix:
ipv4_address: 172.20.5.10
apisix-dashboard:
container_name: apisix-dashboard
#image: apache/apisix-dashboard:2.1
image: apache/apisix-dashboard:2.6
ports:
- 9000:9000
volumes:
-
./apisix-dashboard/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
networks:
apisix:
ipv4_address: 172.20.5.18
networks:
apisix:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
~~~
Now CORS is no longer accessible

This is the configuration of CORS


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]