Record: CorsConfig

Configurations for CORS support.

Closed record


  • allowHeaders string[ ](default [])
  • The array of allowed headers by the service

  • allowMethods string[ ](default [])
  • The array of allowed methods by the service

  • allowOrigins string[ ](default [])
  • The array of origins with which the response is shared by the service

  • exposeHeaders string[ ](default [])
  • The allowlisted headers, which clients are allowed to access

  • allowCredentials boolean(default false)
  • Specifies whether credentials are required to access the service

  • maxAge decimal(default -1)
  • The maximum duration to cache the preflight from client side