Set allowed HTTP origins

POST /groups/{groupId}/apps/{appId}/security/allowed_request_origins

Set the allowed HTTP origins from which App Services should allow requests.

Path parameters

application/json

Body Required

A list of HTTP origins.

array[string] array[string]

An HTTP origin. Must be of the form <scheme>://<host>[:port].

Responses

  • 204

    The allowed HTTP origins were successfully set.

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"]'
Request examples
[
  "string"
]