# Configuring Content Security Policies (CSP) for Released Embeds

## **Overview**  <a href="#csp-configuration" id="csp-configuration"></a>

A [CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) (Content Security Policy) is a security feature implemented by websites to prevent a wide range of attacks, such as cross-site scripting (XSS) and data injection attacks. It acts as a whitelist that controls what types of resources (scripts, styles, images, etc.) a browser is allowed to load and execute on a webpage.

CSP works by letting the site owner specify a set of rules through HTTP headers or meta tags that define which domains or sources are trusted. For example, a CSP policy might allow images to be loaded only from specific domains, or it might block inline scripts unless they are explicitly allowed.

By restricting which external resources can be loaded, CSP helps to mitigate vulnerabilities that hackers could exploit by injecting malicious code into a website.

When embedding Released into your website or app, you may have to add to add Released specific domains to your CSP policy.&#x20;

## **CSP Configuration** <a href="#csp-configuration" id="csp-configuration"></a>

### **Strictest CSP Policy** <a href="#strictest-csp-policy" id="strictest-csp-policy"></a>

At a minimum, the following CSP should work for most users embedding Released:

**Copy the following URLs**

```
Content-Security-Policy: 
  connect-src https://api.released.so https://events.released.so; 
  script-src https://embed.released.so; 
  style-src 'unsafe-inline' https://cdn.released.so https://embed.released.so; 
  img-src https://cdn.released.so https://dwamxgqy3aotj.cloudfront.net; 
  font-src https://embed.released.so
```

{% hint style="info" %}
Please note that these policies cannot be copied as-is and instead must be merged with your existing policy, otherwise your own assets will be blocked by this policy.
{% endhint %}

### **Recommended CSP Policy** <a href="#recommended-csp-policy" id="recommended-csp-policy"></a>

To simplify updates and future-proof your policy against changes we make, we recommend using the source `https://*.released.so` to allow any subdomain of released.so as a source:

**Copy**

```
Content-Security-Policy: 
  connect-src https://*.released.so; 
  script-src https://*.released.so; 
  style-src 'unsafe-inline' https://*.released.so; 
  img-src https://*.released.so https://dwamxgqy3aotj.cloudfront.net; 
  font-src https://*.released.so
```

This policy covers all potential subdomains of Released, making it easier to accommodate updates or changes in our infrastructure without further adjustments.

### **Additional Media Domains** <a href="#additional-media-domains" id="additional-media-domains"></a>

If you are embedding video files or media content into your release notes and roadmaps and your CSP policy already includes a `media-src` or `default-src` directive, you will need to extend your `media-src` directive to include the locations of those images and videos.

### **Final Recommendations** <a href="#final-recommendations" id="final-recommendations"></a>

For maximum flexibility and security, adopting the wildcard strategy (`*.released.so`) in your CSP will help avoid issues as Released evolves. If you encounter specific errors, [contact our support team ](https://released.so/support)for further assistance.


---

# 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.released.so/guide/resources/how-tos/configuring-content-security-policies-csp-for-released-embeds.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.
