Make structure changes to hikes
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user