• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
Firefox Developer Tools
  1. MDN
  2. Firefox Developer Tools
  3. Developer Toolbar
  4. Display security and privacy policies

Display security and privacy policies

In This Article
  1. Content Security Policy
  2. Referrer Policy

The security command displays information about the security and privacy settings for a website. There are two security subcommands:

  • security csp: displays information about the site's Content Security Policy
  • security referrer: displays information about the site's Referrer Policy

Content Security Policy

With the command security csp you can display information related to the Content Security Policy for the current domain.

Executing the command opens a panel displaying the different CSP rules the domain defines with hints about their safety.

CSP panel displayed when executing 'security csp' via the developer toolbar for pages not defining any CSP

If a domain does not define any CSP, you'll see a note telling you so.

CSP panel displayed when executing 'security csp' via the developer toolbar for pages not defining any CSP

Referrer Policy

New in Firefox 43.

With the command security referrer you can see the site's Referrer Policy.

Executing the command displays a panel which names the Referrer Policy state for the site, and spells out which HTTP referer header will be sent in the scenarios applicable to that state.

In the screenshot below the site uses the Origin Only policy.

If the site does not specify a policy, the default policy of None When Downgrade  is used:

Document Tags and Contributors

Tags: 
  • Firefox
  • GCLI
  • Tools
  • Web Development:Tools
 Contributors to this page: wbamberg, Sebastianz
 Last updated by: wbamberg, Dec 16, 2015, 9:17:42 AM
  1. Core Tools
    1. Page Inspector
    2. Web Console
    3. JavaScript Debugger
    4. Network Monitor
    5. Performance
    6. Responsive Design Mode
    7. Tips
  2. More Tools
    1. Memory
    2. Storage Inspector
    3. DOM Property Viewer
    4. Developer Toolbar
    5. Eyedropper
    6. Screenshot
    7. Scratchpad
    8. Style Editor
    9. Shader Editor
    10. Web Audio Editor
  3. Connecting the devtools
    1. about:debugging
    2. Connecting to Firefox for Android
    3. Connecting to iframes
    4. Connecting to other browsers
  4. Debugging the browser
    1. Browser Console
    2. Browser Toolbox
  5. Extending the devtools
    1. Adding a panel to the toolbox
    2. Example devtools add-ons
    3. Remote Debugging Protocol
    4. Stream Transport
    5. Source Editor
    6. The Debugger Interface
    7. Web Console custom output
  6. Settings
  7. Release notes