Skip to content

跨域问题

位置:数据安全 > 跨域设置

提示

跨域规则生效有延迟,将在设置成功 15 分钟内生效。

AllowedOrigin:
  http://localhost:5173
  http://localhost:xxxx
  你的正式前端域名
  # 开发阶段也可以先用 *

AllowedMethod:
  POST
  PUT
  GET
  HEAD
  OPTIONS

AllowedHeader:
  *

ExposeHeader:
  ETag
  x-oss-request-id
  x-oss-hash-crc64ecma

MaxAgeSeconds:
  600

注意 url 到 端口就结束了,不要有 /