Set allowed HTTP origins
Set the allowed HTTP origins from which App Services should allow requests.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
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"
]