diff --git a/src/backend/index.ts b/src/backend/index.ts index afd5316..3ec5ca5 100644 --- a/src/backend/index.ts +++ b/src/backend/index.ts @@ -21,19 +21,7 @@ const app = express(); // Security middleware app.use( helmet({ - contentSecurityPolicy: { - directives: { - defaultSrc: ["'self'"], - styleSrc: ["'self'", "'unsafe-inline'", 'https://unpkg.com'], - scriptSrc: ["'self'"], - imgSrc: ["'self'", 'data:', 'https:'], - connectSrc: ["'self'"], - fontSrc: ["'self'"], - objectSrc: ["'none'"], - mediaSrc: ["'self'"], - frameSrc: ["'none'"], - }, - }, + contentSecurityPolicy: false, // Disable CSP to allow HTTP access strictTransportSecurity: false, // Disable HSTS to allow HTTP access crossOriginOpenerPolicy: false, // Disable COOP to allow HTTP access crossOriginResourcePolicy: false, // Disable CORP to allow HTTP access