Skip to main content

Sets allowed CORS origins

POST 

<your-unleash-url>/api/admin/ui-config/cors

Sets Cross-Origin Resource Sharing headers for Frontend SDK API.

Request

Bodyrequired

setCorsSchema

    frontendApiOriginsstring[]

    The list of origins that the front-end API should accept requests from.

    Example: ["*"]

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/ui-config/cors' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"frontendApiOrigins": [
"*"
]
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "frontendApiOrigins": [
    "*"
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!