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-srcandframe-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
- Add one directive at a time.
- Keep the Extra directives mode on Report-Only for several days of normal traffic.
- Check forms, checkout, embedded media, and admin screens for problems.
- 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.
