Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update content_security_policy.md #8907

Merged
merged 4 commits into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions _docs/_developer_guide/platforms/web/content_security_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ braze.initialize(apiKey, {

## Directives {#directives}

### connect-src {#connect-src}
### `connect-src` {#connect-src}

{% alert warning %}
internetisaiah marked this conversation as resolved.
Show resolved Hide resolved
Your URL must match the [API SDK endpoint]({{site.baseurl}}/user_guide/administrative/access_braze/sdk_endpoints/) of your chosen `baseUrl` initialization option.
{% endalert %}
internetisaiah marked this conversation as resolved.
Show resolved Hide resolved

|URL|Information|
|---|-----------|
|`connect-src https://sdk.iad-01.braze.com`|Allows the SDK to communicate with Braze APIs. Change this URL to match the [API SDK endpoint]({{site.baseurl}}/user_guide/administrative/access_braze/sdk_endpoints/) for your chosen `baseUrl` initialization option.|
{: .reset-td-br-1 .reset-td-br-2 role="presentation"}

### script-src {#script-src}
### `script-src` {#script-src}

|URL|Information|
|---|-----------|
Expand All @@ -49,7 +53,7 @@ braze.initialize(apiKey, {
|`script-src 'nonce-...'`<br>or<br>`script-src 'unsafe-inline'`|Required for certain in-app messages, such as custom HTML.|
{: .reset-td-br-1 .reset-td-br-2 role="presentation"}

### img-src {#img-src}
### `img-src` {#img-src}

|URL|Information|
|---|-----------|
Expand Down