GithubHelp home page GithubHelp logo

slightlyoff / crisp Goto Github PK

View Code? Open in Web Editor NEW
10.0 6.0 0.0 1.36 MB

CSP working for you. You're the user and it's *your* agent, after all.

License: Apache License 2.0

Shell 1.80% JavaScript 98.20%

crisp's Introduction

CriSP

A user-specified CSP extension for Chromium.

Licensed under the Apache License version 2.0, Copyright 2012 Google, all rights reserved.

What Is This?

Content Security Policy (aka "CSP") is a mechanism that allows web developers to control the behavior of browsers, notably disabling many on-by-default capabilities in web pages, such as the ability to request scripts from any other site or to run plugins.

As a developer-facing feature, CSP allows sites to lock-down these capabilities via a policy provided to the browser on a page-by-page basis. This extension allows you, the user, to provide a default policy which is stricter than the browser's default (wide-open) policy, putting the power of CSP in your hands.

It also provides the ability to configure policies on a site-by-site (and eventually, site-type) basis, disabling dangerous features for your banking sites while leaving them on for general browsing.

Contained in this repository you'll find the sources for the Chrome extension, an implementation of CSP in JavaScript, and tests.

Getting Started

This repo pulls in other Git repositories through submodules. After cloning the repo, run:

$ git submodule init
$ git submodule update
...

To run the test from the command line, first, see if they already run without any extra work (they should on most Mac or Linux boxes):

$ cd tests
$ ./run.sh
...

If you get an error like:

$ ./run.sh 
FAILED: No JavaScript Runtime Found! Please install Java or the V8 Shell (d8) and add them to your $PATH

Check out a copy of V8, build the "d8" and "shell" targets, and add them to your $PATH.

License

This project is licensed under the Apache License version 2.0, save for the contents of the "third_party" directory, where licenses are noted on a per-directory basis. No "third_party" code is required for the essential functioning of this library/extension.

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.