mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-15 12:50:01 -04:00
Reduced Helmet Stuff
This commit is contained in:
parent
7d924aaff4
commit
23e2d4835f
3 changed files with 7 additions and 19 deletions
|
@ -80,20 +80,8 @@ server.on('upgrade', (req, socket, head) => {
|
|||
|
||||
// Apply Helmet middleware for security
|
||||
app.use(helmet({
|
||||
contentSecurityPolicy: {
|
||||
directives: {
|
||||
defaultSrc: ["'self'"],
|
||||
styleSrc: ["'self'", 'https:', "'unsafe-inline'"],
|
||||
scriptSrc: ["'self'", 'https:', "'unsafe-inline'"],
|
||||
imgSrc: ["'self'", 'data:', '*.amazonaws.com'],
|
||||
fontSrc: ["'self'", 'https:', 'data:'],
|
||||
mediaSrc: ["'self'", 'https:', 'data:'],
|
||||
connectSrc: ["'self'", 'https:'],
|
||||
frameSrc: ["'self'"],
|
||||
objectSrc: ["'none'"],
|
||||
},
|
||||
},
|
||||
}));
|
||||
contentSecurityPolicy: false // Disable CSP
|
||||
}));
|
||||
|
||||
// All website files are stored in the /views directory.
|
||||
// This takes one of those files and displays it for a site visitor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue