v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01960201.2 KB
Cross-Origin Resource Sharing (CORS)

Edit Cross-Origin Resource Sharing (CORS) settings

This endpoint allows you to manage Cross-Origin Resource Sharing (CORS) settings for the API. CORS is a security feature implemented by web browsers to prevent unauthorized cross-origin requests. By editing the CORS settings, you can specify which domains and which methods are permitted to access the API resources from outside the mailcow domain.

post/api/v1/edit/cors

Request body

Example request

{
  "attr": {
    "allowed_origins": [
      "*",
      "https://mail.mailcow.tld"
    ],
    "allowed_methods": [
      "POST",
      "GET",
      "DELETE",
      "PUT"
    ]
  }
}

Response

OK