产品动态
公告
/product/apigw/document,命中 前端 path 为 /product/ 的 API:/apigw/document;/tencent/,那么就切掉 /product/ 部分,剩下的黏在后端的 path 后面成为 /tencent/apigw/document。= 开始,代表精确匹配,优先级最高。^~ 开始,代表优先前缀匹配,后面不能跟正则表达式,优先级第二。#define CORS_DEFAULT_AC_ALLOW_ORIGIN ("*")#define CORS_DEFAULT_AC_ALLOW_METHODS ("GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH")#define CORS_DEFAULT_AC_ALLOW_CREDENTIALS ("true")#define CORS_DEFAULT_AC_ALLOW_HEADERS ("X-Api-ID,X-Service-RateLimit,X-UsagePlan-RateLimit,X-UsagePlan-Quota,Cache- Control,Connection,Content-Disposition,Date,Keep-Alive,Pragma,Via,Accept,Accept-Charset,Accept-Encoding,Accept-Language,Authorization,Cookie,Expect,From,Host,If-Match,If-Modified-Since,If-None-Match,If-Range,If-Unmodified-Since,Range,Origin,Referer,User-Agent,X-Forwarded-For,X-Forwarded-Host,X-Forwarded-Proto,Accept-Range,Age,Content-Range,Content-Security-Policy,ETag,Expires,Last-Modified,Location,Server,Set-Cookie,Trailer,Transfer-Encoding,Vary,Allow,Content-Encoding,Content-Language,Content-Length,Content-Location,Content-Type")#define CORS_DEFAULT_AC_EXPOSE_HEADERS (CORS_DEFAULT_AC_ALLOW_HEADERS)#define CORS_DEFAULT_AC_MAX_AGE ("86400")
{"message":"There is no api match uri[\\/api\\/v1\\/tool\\/123\\/ico] host [service-asoj98o0-1251762227.ap-guangzhou.apigateway.myqcloud.com]"}service-asoj98o0-1251762227.ap-guangzhou.apigateway.myqcloud.com/release/用户路径/{PathA}/{PathB}/detail,如果客户进来的请求是 /middleware/apigw/detail,那么传给后端的 PathA 参数值为 middleware,PathB 参数值为 apigw。/{PathA}/product/{PathB},如果客户进来的请求是 /middleware/product/apigw/detail,那么传给后端的 PathA 参数值为 middleware,PathB 参数值为 apigw/detail。/{PathA}/{PathB},如果客户进来的请求是 /middleware/apigw/detail,那么传给后端的 PathA 参数值为 middleware/apigw,PathB 参数值为 detail。文档反馈