API网关 APIG-配置API的跨域资源共享:脚本配置示例

时间:2024-11-28 01:48:30

脚本配置示例

{
  "allow_origin": "*",
  "allow_methods": "GET,POST,PUT",
  "allow_headers": "Content-Type,Accept,Accept-Ranges,Cache-Control",
  "expose_headers": "X-Request-Id,X-Apig-Latency",
  "max_age": 86400,
  "allow_credentials": true
}
support.huaweicloud.com/usermanual-apig/apig_03_0021.html