Created
September 19, 2017 13:05
-
-
Save rbnpercy/05d15ae7181eb20d8c7a2537e1940e00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
app.use(function(req, res, next) { | |
res.setHeader( "Content-Security-Policy", "script-src 'self' https://analytics.google.com" ); | |
return next(); | |
}); | |
app.use(express.static(__dirname + '/')); | |
app.listen(process.env.PORT || 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment