許可された HTTP オリジンを設定する
App Services がリクエストを許可する許可された HTTP オリジンを設定します。
path パラメータ
-
Atlas Project/Group ID。
-
アプリケーションの ObjectID。App Services API プロジェクトとアプリケーション ID のセクションでは、この値を見つける方法が示されています。
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"
]