Adds a CORS domain to a service space.
Operation description
Important You can add a maximum of 10 secure cross-origin domains.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpserverless:AddCorsDomain |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Domain |
string |
Yes |
The domain name. Wildcards are supported for the prefix and port. |
*.example.com:* |
| SpaceId |
string |
Yes |
The ID of the service space. |
mp-0e16bb12-14af-****-b24c-5ac1a9a7bb9f |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
74374923-6536-46EB-8639-409384EAE980 |
| DomainId |
string |
The ID of the domain. |
97e3ff58-01e4-****-b975-1805fec34d77 |
Examples
Success response
JSON format
{
"RequestId": "74374923-6536-46EB-8639-409384EAE980",
"DomainId": "97e3ff58-01e4-****-b975-1805fec34d77"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
该文章对您有帮助吗?