---
title: "Set allowed HTTP origins"
method: POST
path: "/groups/{groupId}/apps/{appId}/security/allowed_request_origins"
tags: ["security"]
---

# Set allowed HTTP origins

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

Set the allowed [HTTP
origins](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin)
from which App Services should allow requests.

## Request body

- string[]

## Response `204`

The allowed HTTP origins were successfully set.

---

[API](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
