> For the complete documentation index, see [llms.txt](https://developers.make.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.make.com/white-label-documentation/customize-your-instance/custom-domains/custom-code-injection/dynamic-csps.md). Agents can also search and read this documentation through its [MCP server](https://developers.make.com/~gitbook/mcp).

# Dynamic CSPs

The Dynamic CSPs field of **System settings** lets you customize your instance's Content Security Policy (CSP). To permit resources and content from external URLs, use the following procedure:

1. Create a JSON array of the permitted sources. You can use CSP directives as the key and domains as the value according to the following format:

   1. Omit the dash and any characters after the dash of a CSP directive. Examples: `connect` for `connect-src` or `font` for `font-src`
   2. Omit `https://` from URLs. You can use wildcards. Examples: `drive.example.com` or \*.example.com
   3. Example JSON array:

   { "connect": \[<mark style="color:green;">".example.com"</mark>, <mark style="color:green;">"wss\://web.socket.com"</mark>], "font": \[<mark style="color:green;">".example.com"</mark>] }

{% hint style="info" %}
For WebSockets, you must include `wss://`
{% endhint %}

2. Insert your JSON object into the **Dynamic CSPs** field.
3. Click **Save**.

A message briefly appears confirming the changes are saved.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.make.com/white-label-documentation/customize-your-instance/custom-domains/custom-code-injection/dynamic-csps.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
