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

时间:2024-01-15 20:44:54

脚本配置示例

{
  "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": 172800,
  "allow_credentials": true
}
support.huaweicloud.com/usermanual-apig/apig-ug-0002.html