设置允许的 HTTP 源

发布 /groups/{groupId}/apps/{appId}/security/allowed_request_origins

设置 App Services 应允许来自其中请求的许可的 HTTP 来源

路径参数

application/json

body 必需

HTTP 源列表。

array[string] array[string]

HTTP 起源。必须采用 <scheme>://<host>[:port] 形式。

响应

  • 204

    已成功设置允许的 HTTP 源。

POST /groups/{groupId}/apps/{appId}/security/allowed_request_origins
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/allowed_request_origins' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '["string"]'
请求示例
[
  "string"
]