Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

How do I add extra CSP directives in Aegisify Shield?

The Extra directives (advanced) field in Aegisify Shield → Security Headers → CSP Builder (Pro) lets you add CSP directives that the guided fields do not cover.

How to add them

  • Enter one directive per line.
  • Use valid CSP syntax, for example:
upgrade-insecure-requests
object-src 'none'
base-uri 'self'
form-action 'self' https://checkout.example.com
  • Set the mode to Report-Only first.

Useful directives

  • upgrade-insecure-requests: tells browsers to load HTTP resources over HTTPS.
  • object-src 'none': blocks old plugin content such as Flash.
  • base-uri 'self': prevents attackers from changing the base URL of relative links.
  • form-action: limits where forms can submit data.
  • media-src and frame-src: control audio, video, and embedded frames.

Be careful

A single malformed or overly strict directive can affect the entire page policy. Validate the syntax, test in Report-Only mode, and check the CSP Reports table before enforcing.

A safe workflow

  1. Add one directive at a time.
  2. Keep the Extra directives mode on Report-Only for several days of normal traffic.
  3. Check forms, checkout, embedded media, and admin screens for problems.
  4. Switch to Enforced only when reports show no legitimate resources being blocked.

Requirements

Requires an active Aegisify subscription.

Related: CSP Builder mode, Security headers checklist.

2026-12-01T03:49:29+00:00January 13th, 2026||

Find this article interesting, please share.