CSP Unblock Remove CSP-related headers from top-frame and sub-frames during web development to improve JavaScript execution and Cross-Origin resource access
Support Development
PayPal ● Credit Card ● 
Bitcoin Address: bc1qkmyhd9uzyzq8e3gdftcpzp9xla3nlqne8yxv0v
Lightning Address: [email protected]
Your Input Matters
Review
Advertisement
Extension Screenshot
This extension is disabled by default. To bypass Content-Security-Policy during website testing, temporarily activate the extension by clicking the action button once. When enabled, it applies network rules to remove all CSP-related headers from main-frame and sub-frame requests, eliminating CSP restrictions on web pages. Refresh the webpage to ensure the old CSP rules no longer apply.

Features

FAQs

  1. What is the "CSP Unblock" extension and how do I use it?

    The "CSP Unblock" add-on is designed to simplify the execution of inline and remote JavaScript on web pages restricted by Content-Security-Policy (CSP) headers. By removing CSP-related headers, it also eliminates restrictions on cross-origin resource access. To use it, enable the extension from the toolbar and refresh the page to apply the changes.

    By default, the extension is disabled. To bypass Content-Security-Policy during website testing, activate it by clicking the action button once. When enabled, it applies network rules to strip all CSP-related headers from main-frame and sub-frame requests, removing CSP restrictions from web pages.

  2. recommended "2FA (Two Factor Authentication)" extension for Chrome, and Edge browsers.

    2FA (Two-Factor Authentication) is an Aegis-compatible browser extension for managing TOTP and HOTP codes. It stores your tokens in an encrypted Aegis database file on your device instead of browser storage, making it easy to sync across devices with any file-sharing service. The database uses the same strong encryption as Aegis Authenticator and is fully compatible with the Aegis Android app. You can create, edit, organize, and delete tokens, customize their details and icons, and use keyboard shortcuts for faster access. Read more here.

  3. What's new in this version?

    Please check the Logs section.

  4. Which CSP-related headers does the extension support?

    At this moment, the extension supports the following headers that control the CSP or reporting API of the web pages:

    • Content-Security-Policy
    • Content-Security-Policy-Report-Only
    • X-Content-Security-Policy
    • X-Content-Security-Policy-Report-Only
    • X-WebKit-CSP
    • X-WebKit-CSP-Report-Only
    • Report-To
    • Reporting-Endpoints
    In modern browsers, only the first two headers are relevant. All X-* headers are obsolete and safe to remove, so they are grouped under a sub-menu.

  5. What is the Content Security Policy (CSP) header, and why do websites implement it?

    The Content Security Policy (CSP) header is an extra security layer designed to detect and prevent certain types of attacks, such as Cross-Site Scripting (XSS) and data injection. It helps safeguard websites by defining which resources are trusted and controlling how content is loaded.

    CSP is fully backward compatible. Browsers that don't support CSP can still interact with servers that implement it, and servers can function with browsers that lack CSP support. If a browser doesn't recognize CSP, it ignores the header and applies the standard same-origin policy for web content. Similarly, if a website doesn't provide a CSP header, browsers default to the traditional same-origin policy.

  6. What is the "Content-Security-Policy-Report-Only" HTTP header?

    The HTTP Content-Security-Policy-Report-Only response header enables web developers to test security policies by observing their effects without enforcing them. Violation reports, formatted as JSON documents, are sent via an HTTP POST request to a designated URI for analysis.

  7. What is the "X-Webkit-CSP" HTTP header?

    The X-Webkit-CSP header is a deprecated HTTP response header that was used to define a Content Security Policy (CSP) specifically for WebKit-based browsers, such as older versions of Safari and Chrome. It served as an early, vendor-specific implementation of CSP before the standardized Content-Security-Policy header became widely adopted.

    It allowed web developers to specify a set of rules to control which resources (e.g., scripts, images, stylesheets, or iframes) a browser could load or execute on a webpage. Its primary purpose was to enhance security by mitigating risks like cross-site scripting (XSS), clickjacking, and other code injection attacks.

    By defining a policy, the header restricted the sources from which content could be loaded, ensuring only trusted resources were allowed. For example, it could:

    • Restrict scripts to run only from the same domain as the website.
    • Block inline JavaScript or CSS unless explicitly allowed.
    • Limit external resources (e.g., images or fonts) to specific trusted domains.

    Example

    A server might include a header like this:

    X-Webkit-CSP: default-src 'self'; script-src 'self' https://trusted.example.com; img-src 'self' https://images.example.com;

    This policy would:

    • Allow resources (default-src) only from the same origin ('self').
    • Permit scripts (script-src) from the same origin and trusted.example.com.
    • Allow images (img-src) from the same origin and images.example.com.

  8. What is the meaning of "Reporting API" and why they are grouped under a sub-menu?

    These are often confused as CSP headers but are separate (related but not CSP itself):

    • Report-To: Used by CSP via report-to directive
    • Reporting-Endpoints: Newer replacement for Report-To (Reporting API v1)

Matched Content

Reviews

Please keep reviews clean, avoid improper language, and do not post any personal information. Also, please consider sharing your valuable input on the official store.

What's new in this version

Version--
Published--/--/--
Change Logs:
    Last 10 commits on GitHub
    Hover over a node to see more details

    Need help?

    If you have questions about the extension, or ideas on how to improve it, please post them on the  support site. Don't forget to search through the bug reports first as most likely your question/bug report has already been reported or there is a workaround posted for it.

    Open IssuesIssuesForks

    Permissions are explained

    PermissionDescription
    storageto save which CPS-related headers are active
    declarativeNetRequestto install a net request rule to remove enabled headers
    contextMenusto add right-click context menu options to the action button

    Recent Blog Posts