Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ertrzyiks/csp-test
https://github.com/ertrzyiks/csp-test
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ertrzyiks/csp-test
- Owner: ertrzyiks
- Created: 2015-06-10T06:21:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-10T06:34:36.000Z (over 9 years ago)
- Last Synced: 2024-12-07T19:35:54.477Z (about 2 months ago)
- Language: HTML
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSP Test
Small example of [CSP](https://developer.mozilla.org/en-US/docs/Web/Security/CSP) which help determine if browser
support this kind of protection## Usage
* Clone this repository
* Install dependencies `npm install`
* Start server `npm start`
* Open `localhost:3000` in your browserBrowser with support for CSP will succeed on same domain scenario and fail on inline, like this:
```
Same domain javascript test
It works
Inline javascript test
Failed
Same domain css test
It works
Inline css test
Failed
```