chenghongxi commented on issue #10234:
URL: https://github.com/apache/apisix/issues/10234#issuecomment-1727075130

   route json如下:
   {
     "uri": "/api/form/gateway/save/6688d9e0c1225a46f4838ee08dd7392c",
     "name": "test",
     "plugins": {
       "consumer-restriction": {
         "rejected_code": 403,
         "rejected_msg": "不允许访问",
         "type": "consumer_name",
         "whitelist": [
           "6688d9e0c1225a46f4838ee08dd7392c"
         ]
       },
       "cors": {
         "allow_credential": false,
         "allow_headers": "*",
         "allow_methods": "*",
         "allow_origins": "http://xxx.com";,
         "allow_origins_by_regex": [
           "[\".*\\.jilinxiangyun.com\", \".*\\.gov.cn\", 
\".*://localhost$\",\".*://localhost:.*$\"]"
         ],
         "disable": false,
         "expose_headers": "*",
         "max_age": 5
       },
       "key-auth": {
         "header": "apikey",
         "hide_credentials": false,
         "query": "apikey"
       },
       "limit-count": {
         "allow_degradation": false,
         "count": 5,
         "key": "consumer_name",
         "key_type": "var",
         "policy": "local",
         "rejected_code": 503,
         "rejected_msg": "请求过多",
         "show_limit_quota_header": true,
         "time_window": 1
       },
       "proxy-rewrite": {
         "headers": {
           "add": {
             "skip": "true"
           }
         },
         "scheme": "https"
       }
     },
     "upstream": {
       "nodes": [
         {
           "host": "10.247.233.143",
           "port": 30020,
           "weight": 1
         }
       ],
       "timeout": {
         "connect": 6,
         "send": 6,
         "read": 6
       },
       "type": "roundrobin",
       "scheme": "http",
       "pass_host": "pass",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     },
     "status": 1
   }


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to