Skip to content

Setting Security Headers

Subscribers to QUIC.cloud's Premium Plan have access to the Security Headers section. If your backend server is not configured to send security headers, you can have QUIC.cloud send them.

By default, all of these settings are disabled or not set.

In your QUIC.cloud Dashboard, select your Premium domain, and navigate to CDN > CDN Config > Security > Headers.

QUIC.cloud Default SSL Certificate Settings

No-Sniff Header

OFF

Turn this option ON to have QUIC.cloud send the X-Content-Type-Options:nosniff header. The purpose is to avoid MIME type sniffing by informing the browser that the Content-Type header provided by the server is to be trusted.

Referrer-Policy Header

None

This header controls how much referrer information is included in the Referer header when a browser makes requests. It has a few benefits:

  • It prevents leakage of sensitive URLs across origins
  • It reduces tracking by third parties
  • It helps comply with privacy regulations such as GDPR

The policy values determine when the Referer header is sent, and what information is sent with it:

Policy Protocol Security Downgrade Protocol Security Same/Upgrade Cross-Origin Same-Origin
no-referrer — — — —
strict-origin — origin — origin
strict-origin-when-cross-origin — origin origin full
origin origin origin origin origin
same-origin full full — full
no-referrer-when-downgrade — full full full
origin-when-cross-origin full full origin full
Legend:
Token Meaning
— Referer header not sent
origin Scheme, host, and port only (e.g. https://example.com)
full Origin + path + query string (e.g. https://example.com/page?id=123)

X-Frame-Options Header

NONE

Use this option to avoid clickjacking attacks by specifying who is allowed to render the document in a <frame>, <iframe>, <embed>, or <object>.

Options are: - NONE: Do not send the X-Frame-Options header - DENY: Deny access to embed the document in any site, even same-origin - SAMEORIGIN: Allow embedding only in same-origin sites

Tip

This setting may be replaced by the more flexible Content-Security-Policy header, with the frame-ancestors directive.

Content-Security-Policy (CSP)

QUIC.cloud Default SSL Certificate Settings

The Content-Security-Policy (CSP) HTTP response header is a powerful security mechanism that helps mitigate a wide range of attacks, primarily cross-site scripting (XSS), clickjacking, data injection, and other code-injection vulnerabilities. It works by allowing you to define an allowlist of trusted sources from which the browser can load resources (scripts, styles, images, fonts, frames, etc.).

Browsers will block or restrict resources that don't match the policy, significantly reducing the impact of malicious injected content.

Example Starter Policies:

  • Strict (Production-Recommended): default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self'; connect-src 'self'; frame-ancestors 'self'; upgrade-insecure-requests;
  • Moderate (Common for Many Sites): default-src 'self'; script-src 'self' trusted-scripts.example.com; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; connect-src 'self' https://api.example.com; frame-ancestors 'self';

Learn more about security policy syntax.

We recommend clicking the Report-only mode option when you create a new policy. Then test the rules with one of the following: - https://securityheaders.com
- https://csp-evaluator.withgoogle.com
- Browser console (violations appear in DevTools)