Skip to content

Commit

Permalink
fix: remove helmet config
Browse files Browse the repository at this point in the history
  • Loading branch information
raghav-rama committed Nov 28, 2024
1 parent cfc62df commit bada502
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,12 @@
import mongoose from 'mongoose';
import express from 'express';
import cors from 'cors';
import helmet from 'helmet';
import Config from './config.js';
import router from './routes/mintOptions.route.js';

const app = express();

app.use(cors());
app.use(
helmet({
hidePoweredBy: true,
contentSecurityPolicy: {
directives: {
defaultSrc: ["'self'"],
scriptSrc: ["'self'", "'unsafe-inline'"],
styleSrc: ["'self'", "'unsafe-inline'"],
imgSrc: ["'self'", 'data:', 'https:'],
},
},
crossOriginEmbedderPolicy: true,
crossOriginOpenerPolicy: true,
crossOriginResourcePolicy: { policy: 'cross-origin' },
hsts: {
maxAge: 31536000,
includeSubDomains: true,
preload: true,
},
frameguard: {
action: 'deny',
},
referrerPolicy: { policy: 'strict-origin-when-cross-origin' },
}),
);
app.use(express.json());

try {
Expand Down

0 comments on commit bada502

Please sign in to comment.