CORS origins
CORS origins: 5 operations, tagged cors-origins in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/platform/cors |
List CORS origins (anchor) |
POST |
/api/platform/cors |
Add a CORS origin |
GET |
/api/platform/cors/allowed |
List allowed CORS origins (public) |
GET |
/api/platform/cors/{id} |
Get a CORS origin by id (anchor) |
DELETE |
/api/platform/cors/{id} |
Remove a CORS origin |
Operations
Section titled “Operations”GET /api/platform/cors
Section titled “GET /api/platform/cors”List CORS origins (anchor)
Operation ID: listCorsOrigins
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json CorsOriginListResponse |
default |
Error | application/json ErrorModel |
POST /api/platform/cors
Section titled “POST /api/platform/cors”Add a CORS origin
Operation ID: addCorsOrigin
Request body (required)
| Content type | Schema |
|---|---|
application/json |
AddOriginRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json CreatedResponse |
default |
Error | application/json ErrorModel |
GET /api/platform/cors/allowed
Section titled “GET /api/platform/cors/allowed”List allowed CORS origins (public)
Operation ID: publicAllowedOrigins
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json PublicAllowedResponse |
default |
Error | application/json ErrorModel |
GET /api/platform/cors/{id}
Section titled “GET /api/platform/cors/{id}”Get a CORS origin by id (anchor)
Operation ID: getCorsOrigin
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json AllowedOriginResponse |
default |
Error | application/json ErrorModel |
DELETE /api/platform/cors/{id}
Section titled “DELETE /api/platform/cors/{id}”Remove a CORS origin
Operation ID: deleteCorsOrigin
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”AddOriginRequest
Section titled “AddOriginRequest”| Field | Type | Required | Description |
|---|---|---|---|
description |
string | no | |
origin |
string | yes | CORS-allowed origin (e.g. https://example.com) |
AllowedOriginResponse
Section titled “AllowedOriginResponse”| Field | Type | Required | Description |
|---|---|---|---|
createdAt |
string (date-time) | yes | |
createdBy |
string | no | |
description |
string | no | |
id |
string | yes | |
origin |
string | yes | |
updatedAt |
string (date-time) | yes |
CorsOriginListResponse
Section titled “CorsOriginListResponse”| Field | Type | Required | Description |
|---|---|---|---|
corsOrigins |
AllowedOriginResponse[] |
yes | |
total |
integer (int64) | yes |
CreatedResponse
Section titled “CreatedResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes |
PublicAllowedResponse
Section titled “PublicAllowedResponse”| Field | Type | Required | Description |
|---|---|---|---|
origins |
string[] | yes |