membphis commented on issue #1689:
URL: 
https://github.com/apache/incubator-apisix/issues/1689#issuecomment-646965906


   please provide your full file `conf/config.yaml`, I can not reproduce your 
bug.
   it works fine at my local machine.
   
   ```diff
   diff --git a/conf/config.yaml b/conf/config.yaml
   index cee95a60..3a122a37 100644
   --- a/conf/config.yaml
   +++ b/conf/config.yaml
   @@ -51,7 +51,7 @@ apisix:
      #    cache_levels: "1:2"
   
      allow_admin:                  # 
http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
   -    - 127.0.0.0/24              # If we don't set any IP list, then any IP 
access is allowed by default.
   +    - 0.0.0.0/0              # If we don't set any IP list, then any IP 
access is allowed by default.
      #   - "::/64"
      # port_admin: 9180              # use a separate port
      # https_admin: true             # enable HTTPS when use a separate port 
for Admin API.
   ```
   
   ```shell
   $ curl -i http://127.0.0.1:9080/apisix/admin/routes -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'
   HTTP/1.1 200 OK
   Date: Sat, 20 Jun 2020 09:02:15 GMT
   Content-Type: text/plain; charset=utf-8
   Transfer-Encoding: chunked
   Connection: keep-alive
   Access-Control-Allow-Origin: *
   Access-Control-Allow-Credentials: true
   Access-Control-Expose-Headers: *
   Access-Control-Max-Age: 3600
   Server: APISIX web server
   
   ... ...
   ```


----------------------------------------------------------------
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]


Reply via email to