Skip to main content

Security Headers

Add HTTP security headers to protect your site against common web vulnerabilities.

Configuring security headers

  1. Go to your site's Access tab
  2. Under Security Headers, configure the headers you want
  3. Click Save

Available headers

X-Frame-Options

Prevents your site from being embedded in iframes on other domains. This protects against clickjacking attacks.

ValueDescription
DENYPrevents all framing
SAMEORIGINOnly allows framing from the same origin

X-Content-Type-Options

When enabled, adds nosniff to prevent browsers from MIME-type sniffing. This stops browsers from interpreting files as a different content type than declared.

Referrer-Policy

Controls how much referrer information is sent with requests.

ValueDescription
no-referrerNo referrer information is sent
originOnly the origin (domain) is sent
strict-originOrigin is sent, but only over HTTPS
strict-origin-when-cross-originFull URL for same-origin, origin only for cross-origin

Content-Security-Policy (CSP)

A powerful header that controls which resources the browser is allowed to load. Helps prevent XSS attacks.

Example:

default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:;

Permissions-Policy

Controls which browser features your site can use (camera, microphone, geolocation, etc.).

Example:

camera=(), microphone=(), geolocation=()

This disables camera, microphone, and geolocation access for your site.