Sets allowed CORS origins
POST<your-unleash-url>/api/admin/ui-config/cors
Sets Cross-Origin Resource Sharing headers for Frontend SDK API.
Request
- application/json
Bodyrequired
setCorsSchema
frontendApiOriginsstring[]
The list of origins that the front-end API should accept requests from.
Example:
["*"]
Responses
- 204
This response has no body.
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '<your-unleash-url>/api/admin/ui-config/cors' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"frontendApiOrigins": [
"*"
]
}'
ResponseClear