# 关于 cors 的响应头有哪些

Issue

欢迎在 Issue 中交流与讨论: Issue 328 (opens new window)

  • Access-Control-Allow-Origin
  • Access-Control-Allow-Methods
  • Access-Control-Allow-Headers
  • Access-Control-Allow-Credentials
  • Access-Control-Expose-Headers
  • Access-Control-Max-Age

关于如何写一个 cors 的中间件可以参考 koajs/cors (opens new window)

Last Updated: 1/17/2021, 2:02:56 PM