Giter Site home page Giter Site logo

rhzone / csp-for-me Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yobukodori/csp-for-me

0.0 0.0 0.0 81 KB

Append directive or directive-value to the existing CSP(content-security-policy) header in HTTP response

License: Mozilla Public License 2.0

JavaScript 81.52% CSS 8.88% HTML 9.60%

csp-for-me's Introduction

CSP for Me - firefox extension

Adds/Removes directive or directive-value to/from the existing CSP(content-security-policy) header in HTTP response.

HTTPレスポンスの既存のCSPヘッダにディレクティブあるいはディレクティブ値を追加/削除するFirefox拡張機能

CSP for Me is available on AMO.

Usage

screenshot

  • Enable at startup: Enable this feature when the browser is started.
  • Print debug info: Output debug information at the bottom of the Options tab.
  • no-cache: Controls the Cache-Control header so that CSP-modified pages are not cached.
  • Theme: Select a color theme for the settings page. As soon as you select a theme, it will be reflected in the settings page, but only temporarily. Apply or Save as needed.
  • Applied URLs: Comma-Separated target URL patterns.
  • Applied Policy: CSP directives to add or remove.
    Add: Follow the CSP syntax.
    e.g. script-src 'unsafe-inline' https://yobukodori.github.io
    Remove: 'remove': <value> or <regular expression> or 'directive'
    e.g. script-src 'remove':https://www.google-analytics.com 'remove':/^'(nonce|sha256|sha384|sha512)-/; report-uri 'remove':'directive'
    Remove CSP header itself: When no-csp is written as an original directive, the CSP header itself is deleted.
    e.g. no-csp
    Adds new value to end of existing value if same directive name exists.
    Adds new directive to end of header value if same directive name not exists.
    Does nothing if CSP header doesn't exist in response.
  • Save: Save and apply settings.
  • Apply: Apply settings. (doesn't save settings).
  • Get Status: get current status and applied settings.
  • On enables this feature. Off disables this feature. Or clicking lock icon in toolbar will bring up a pop-up menu where you can turn it on/off and open the settings page.
  • Clear Log: Clear log.
  • Export Settings: Export settings to the file. It is the currently applied settings that are exported, not the saved settings.
  • Import Settings: Import and apply settings from the file. Do not save.

If CSP for Me doesn't work, reload the page several times. The browser may be loading the cache of the page before CSP modification.

csp-for-me's People

Contributors

yobukodori avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.