# Configuration Cross Origins (CORS)

Si vous devez restreindre l'accès à l'API de NGSurvey à des domaines donnés, vous pouvez définir les variables d'environnement suivantes sur la plateforme que vous utilisez pour héberger NGSurvey.

*`NGSurvey:AllowedCORSOrigins`*

Les domaines doivent être séparés par une virgule, par ex. :

NGSurvey:AllowedCORSOrigins = "<https://www.domain.com,https://\\*.domain2.com>"


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/fr/installation-setup/installation/configuration-des-origines-croisees-cors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
