Make structure changes to hikes

This commit is contained in:
Berkeley Martinez
2015-12-22 19:33:25 -08:00
parent 65b6715f68
commit 22cb610279
11 changed files with 154 additions and 116 deletions

View File

@@ -1,9 +1,13 @@
import helmet from 'helmet';
const trusted = [
let trusted = [
"'self'"
];
if (process.env.NODE_ENV !== 'production') {
trusted.push('ws://localhost:3001');
}
export default function csp() {
return helmet.csp({
defaultSrc: trusted,