This commit is contained in:
9
app.js
9
app.js
@@ -53,10 +53,11 @@ app.use(helmet({
|
||||
contentSecurityPolicy: {
|
||||
directives: {
|
||||
defaultSrc: ["'self'"],
|
||||
scriptSrc: ["'self'", "'unsafe-inline'"], // Allow inline scripts for Swagger UI
|
||||
styleSrc: ["'self'", "'unsafe-inline'"], // Allow inline styles for Swagger UI
|
||||
imgSrc: ["'self'", "data:", "https:", "validator.swagger.io"], // Allow Swagger validator
|
||||
connectSrc: ["'self'"],
|
||||
scriptSrc: ["'self'", "'unsafe-inline'", "'unsafe-eval'"], // Allow inline scripts
|
||||
scriptSrcAttr: ["'unsafe-inline'"], // Allow inline event handlers
|
||||
styleSrc: ["'self'", "'unsafe-inline'"], // Allow inline styles
|
||||
imgSrc: ["'self'", "data:", "https:", "http:", "validator.swagger.io"], // Allow all images
|
||||
connectSrc: ["'self'", "http://senaai.tech:10000", "https://senaai.tech"], // Allow API calls
|
||||
fontSrc: ["'self'"],
|
||||
objectSrc: ["'none'"],
|
||||
mediaSrc: ["'self'"],
|
||||
|
||||
Reference in New Issue
Block a user