# Enterprise Solution: Adding and Setting Up Security Headers

Source: https://support.wix.com/en/article/wix-enterprise-adding-and-setting-up-security-headers (updated 2026-10-05)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Security headers are a set of instructions or rules configured to your website or web server, that fortify websites against cyber threats, protecting sensitive data and fostering site visitor trust.

With Wix Studio for enterprise, you can add and configure your organization's custom security headers for each site. You can also duplicate security header policies across sites to speed up securing your organization's online assets.

> **Important:** Security headers work on an individual site level, not on an account level. This allows you to choose the relevant security headers for each of the organization's sites.

---

## Custom security header types

The following security headers are currently available with Wix Studio for enterprise:

**Permissions-Policy**

Enables web developers to control which web platform features are available to a web page, enhancing security and privacy by limiting access to sensitive APIs. [Learn more about Permissions-Policy headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy).

**X-Frame-Options**

Determines if a webpage can be displayed within a frame, preventing clickjacking attacks by restricting framing. [Learn more about X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options).

**Referrer-Policy**

Specifies how much information should be included in the HTTP referrer header when navigating from one page to another, enhancing user privacy and reducing data leakage. [Learn more about Referrer-Policy headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy).

**Strict-Transport-Security (HSTS)**

Forces secure HTTPS connections, protecting against man-in-the-middle attacks by ensuring all communication between browser and server occurs over HTTPS. [Learn more about Strict-Transport-Security (HSTS) headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security).

**Content-Security-Policy (CSP)**

Controls which resources a web page is allowed to load, mitigating risks such as cross-site scripting (XSS) attacks and data injection. [Learn more about Content-Security-Policy (CSP) headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#sources).

**X-Content-Type-Options**

**Note:** This security header is supported by default on all Wix sites.   
  
 Tells the browser to use the Multipurpose Internet Mail Extensions (MIME) content type. This is a way of identifying the format of a file or document specified by the server, and not to change it. This helps prevent MIME type sniffing, ensuring the content type is used exactly as intended. [Learn more about X-Content-Type-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options).

---

## Adding and configuring security headers

Add and configure the relevant custom security headers for your organization's sites to protect against cyberattacks. Add, and then configure each security header before saving and testing on your site. After a successful test, you can then activate your custom security headers.

> **Important:** Only click **Save** at the top when you are finished configuring all the relevant headers, or you will have to start again from scratch.

### To add security headers to a site:

1. [Go to Security Headers](https://manage.wix.com/enterprise-dashboard/security-headers) in your enterprise dashboard.
2. Click **+ Add Headers** at the top right.
3. Click the relevant site.
4. Click **Select**.
5. Select the checkbox next to the security headers you want to add and configure.
6. Configure the relevant security headers according to your needs, following the instructions below:

**Permissions-Policy**

The Permissions-Policy header enables your organization's web developers to specify which website functionalities are permitted or restricted. You can define a set of policies that control access to APIs and browser behaviors. This ensures your site adheres to best practices and facilitates safer integration of third-party content.

  
**To configure your Permissions-Policy custom header:** 

1. Assemble the relevant [directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy#directives) and their corresponding [allowlists](https://developer.mozilla.org/en-US/docs/Web/HTTP/Permissions%5FPolicy#allowlists), separating each with a comma, as shown in the example above.
2. Copy and paste your directives into the **Directives** field under **Permissions-Policy**.  
![A screenshot showing a list of directives in the directive field in the security headers section of the Enterprise dashboard.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/04/16/1cd2aacc-3503-4fb4-bafc-2a84a46d20c3/23e36aca-99fe-45a5-a80e-96930b55b6c9.png)

**X-Frame-Options**

**Note:** The Content-Security-Policy HTTP header has a frame-ancestors directive, which renders this header obsolete for supporting browsers.  
  
 The X-Frame-Options HTTP response header determines whether a browser can display a page within a frame, iframe, embed, or object, serving as a defense against clickjacking attacks, though it's effective only when the user's browser supports X-Frame-Options.

  
**To configure your X-Frame-Options custom security header:** 

1. Click to expand the **Directive** drop-down under **X-Frame-Options**.
2. Choose the relevant option: **Deny** or **Same-origin**.  
![A screenshot showing how to your X frame options directives.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/04/16/a227114a-4d9d-4a7d-bd59-f2d2a4e728a6/6f852ada-a307-48fe-b3b1-b605fb809e0d.png)

**Referrer-Policy**

The Referrer-Policy HTTP header dictates the level of referrer information sent with requests via the Referrer header, and this policy can also be specified in HTML. 

  
**To configure your Referrer-Policy custom security header:** 

1. Click to expand the **Directive** drop-down.
2. Choose the relevant option from the drop-down.

![A screenshow showing how to select the relevant directive for the referrer policy.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/05/07/fe818be8-3c3a-4d91-a2b3-51995e6e6600/29a80765-5b97-4994-b20e-d924cb249f7c.png)

**Strict-Transport-Security (HSTS)**

The HTTP Strict-Transport-Security (HSTS) response header instructs browsers to access the site exclusively through HTTPS, automatically converting any HTTP attempts to HTTPS.

  
**To configure your Strict-Transport-Security (HSTS) custom security header:** 

1. Enter the **max-age**,specifying the duration in seconds. For example: max-age=63072000
2. (Optional) Select the **includeSubDomains** checkbox.
3. (Optional) Select the **preload** checkbox.  
**Note:** When using preload, the **max-age** directive must be at least 31536000 (1 year), and the **includeSubDomains** directive checkbox must be enabled.  
![A screenshot showing how to configure the strict transport security header.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/04/16/c7a95d1c-c6ca-4981-80ca-d48781050f41/b1bb3281-b541-4f9a-abb8-b03154b02cd6.png)

**Content-Security-Policy (CSP)**

Content Security Policy (CSP) provides extra protection by identifying and preventing specific types of attacks, such as Cross-Site Scripting (XSS) and data injection. These attacks can lead to various harmful actions, from stealing data to distributing malware or defacing websites.

  
**To configure your Content-Security-Policy (CSP):** 

 Enter all relevant directives and their corresponding values in the **Directives** field.   
![A screenshot showing how to input your content security policy directives in the Wix Enterprise dashboard.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/04/16/89397153-4588-4958-a42b-c2129280d618/f7a0f41c-45e4-4ca0-b9bc-6aa61fc5f641.png)

---

## Deactivating security headers

You can temporarily deactivate a security header on a site if your organization is making changes to the site and you need to test certain features. However, it's crucial to reactivate the security header afterward to maintain protection against cyber threats.

### To deactivate a security header:

1. [Go to Security Headers](https://manage.wix.com/enterprise-dashboard/security-headers) in your enterprise dashboard.
2. Click the **More Actions** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2023/12/05/02e7b0bd-2974-41cb-9df7-508db6777c04/3fa01c79-a5b3-4439-8c35-b3d202b69631.png) next to the security header you want to deactivate on a site.
3. Click **Deactivate**.
4. Click **Deactivate** again to confirm.

![A screenshot showing how to deactivate a security header in the Enterprise dashboard.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/05/07/42c1dfbd-b709-4aac-896f-47c7a50d0c68/42048ec7-955a-42c3-afe5-52a70a081b64.png)

---

## Deleting security headers

You can delete any security header policy on any of your sites at any time.

> **Important:** Deleting a policy is permanent and you cannot undo this action. You can deactivate a policy instead, if you prefer.

### To remove a security header from a site:

1. [Go to Security Headers](https://manage.wix.com/enterprise-dashboard/security-headers) in your enterprise dashboard.
2. Click the **More Actions** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2023/12/05/02e7b0bd-2974-41cb-9df7-508db6777c04/3fa01c79-a5b3-4439-8c35-b3d202b69631.png) next to the security header you want to remove from a site.
3. Click **Delete**.
4. Click **Delete Policy** to confirm.

![A screenshot showing how to delete a security header policy.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/05/08/e417f010-046f-4f83-b50e-f58bb42768f1/14a783eb-834f-4963-af79-628b95fb8e65.png)

---

## Granting access to manage security headers

By default, only an account owner and co-owner can add, set up and manage security headers. You can, however, create a custom role for your account to grant security header access to your security manager, for example.

### To grant access to manage security headers:

1. [Go to Team](https://manage.wix.com/enterprise-dashboard/team) in your enterprise dashboard.
2. Click **More Actions** at the top.
3. Click **Manage Roles**.
4. Click **+ Create New Role**.
5. Enter the **Role Title** and **Description**.
6. Scroll down, and click to expand **Sites**.
7. Select the **Manage Folders** checkbox.
8. Scroll down, and click to expand **Enterprise Dashboard**.
9. Select the **Manage Security Headers** checkbox.
10. Click **Save**.

![A screenshot showing an example of creating a Security Manager custom role in the Enterprise dashboard.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/6c3762e1-9c1a-4295-a5a9-bf8de5216635/2024/05/07/5bd6f227-6e30-4a63-b030-611a8d4630da/cd5509ad-dba0-425d-b1c9-588a3221e92c.png)
