You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/04 00:56:32 UTC

[GitHub] [apisix-dashboard] suifff opened a new issue #1930: request help: apisix cannot use CORS plug-in after upgrading from 2.0 to 2.5 and partial route failure

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
   ![image](https://user-images.githubusercontent.com/37427008/120444980-c1577600-c3ba-11eb-94ca-37de1c284b37.png)
   
   This is the configuration of CORS 
   ![image](https://user-images.githubusercontent.com/37427008/120445320-14312d80-c3bb-11eb-96d0-5d59b96ff3a7.png)
   ![image](https://user-images.githubusercontent.com/37427008/120446197-e6001d80-c3bb-11eb-870d-0cfd74261ee1.png)
   


-- 
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:
users@infra.apache.org



[GitHub] [apisix-dashboard] suifff closed issue #1930: request help: apisix cannot use CORS plug-in after upgrading from 2.0 to 2.5 and partial route failure

Posted by GitBox <gi...@apache.org>.
suifff closed issue #1930:
URL: https://github.com/apache/apisix-dashboard/issues/1930


   


-- 
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:
users@infra.apache.org



[GitHub] [apisix-dashboard] suifff closed issue #1930: request help: apisix cannot use CORS plug-in after upgrading from 2.0 to 2.5 and partial route failure

Posted by GitBox <gi...@apache.org>.
suifff closed issue #1930:
URL: https://github.com/apache/apisix-dashboard/issues/1930


   


-- 
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:
users@infra.apache.org



[GitHub] [apisix-dashboard] suifff commented on issue #1930: request help: apisix cannot use CORS plug-in after upgrading from 2.0 to 2.5 and partial route failure

Posted by GitBox <gi...@apache.org>.
suifff commented on issue #1930:
URL: https://github.com/apache/apisix-dashboard/issues/1930#issuecomment-854292965


   Thank you very much. My problem has been solved


-- 
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:
users@infra.apache.org



[GitHub] [apisix-dashboard] spacewander commented on issue #1930: request help: apisix cannot use CORS plug-in after upgrading from 2.0 to 2.5 and partial route failure

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #1930:
URL: https://github.com/apache/apisix-dashboard/issues/1930#issuecomment-854279511


   It would be better to align the validation of the dashboard to the APISIX.


-- 
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:
users@infra.apache.org



[GitHub] [apisix-dashboard] spacewander commented on issue #1930: request help: apisix cannot use CORS plug-in after upgrading from 2.0 to 2.5 and partial route failure

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #1930:
URL: https://github.com/apache/apisix-dashboard/issues/1930#issuecomment-854279511


   It would be better to align the validation of the dashboard to the APISIX.


-- 
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:
users@infra.apache.org



[GitHub] [apisix-dashboard] suifff commented on issue #1930: request help: apisix cannot use CORS plug-in after upgrading from 2.0 to 2.5 and partial route failure

Posted by GitBox <gi...@apache.org>.
suifff commented on issue #1930:
URL: https://github.com/apache/apisix-dashboard/issues/1930#issuecomment-854292965


   Thank you very much. My problem has been solved


-- 
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:
users@infra.apache.org