I hereby claim:
- I am EvanHahn on github.
- I am evanhahn (https://keybase.io/evanhahn) on keybase.
- I have a public key whose fingerprint is C3AB 6FA7 DC98 0294 2D89 C540 4329 0CC8 681B 62EB
To claim this, I am signing this object:
| .DS_Store | |
| *.swp | |
| node_modules | |
| *.log |
| @charset "UTF-8"; | |
| /* ====================================================== | |
| v 0.1.0 | |
| Versioned according to http://semver.org/spec/v2.0.0.html | |
| Primary Maintainer: @albert | |
| Contributors: | |
| ====================================================== */ |
| var express = require("express"); | |
| var onHeaders = require("on-headers"); | |
| var path = require("path"); | |
| var app = express(); | |
| // ... | |
| app.use(function(req, res, next) { | |
| onHeaders(res, function() { |
I hereby claim:
To claim this, I am signing this object:
| var express = require('express'); | |
| var path = require('path'); | |
| var HEADER_VALUE = "default-src 'self';"; | |
| var HEADERS = [ | |
| 'Content-Security-Policy', | |
| 'X-Content-Security-Policy', | |
| 'X-Webkit-CSP' | |
| ]; |
| #!/usr/bin/env ruby | |
| IO.foreach(ARGV.first) do |line| | |
| puts line.split('@').first | |
| end | |
| # Licensed under the Unlicense. <http://unlicense.org/> |
| var connect = require('connect') | |
| var csp = require('helmet-csp') | |
| var app = connect() | |
| app.use(csp({ | |
| directives: { | |
| mediaSrc: ['media.example.com'] | |
| } | |
| })) |