https://github.com/ertrzyiks/csp-test
https://github.com/ertrzyiks/csp-test
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ertrzyiks/csp-test
- Owner: ertrzyiks
- Created: 2015-06-10T06:21:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-10T06:34:36.000Z (about 10 years ago)
- Last Synced: 2025-03-29T05:44:03.447Z (4 months ago)
- Language: HTML
- Size: 125 KB
- Stars: 0
- Watchers: 2
- 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
```