Skip to content

Commit

Permalink
fix: csp allow frame-src from adrianleung.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
adriancleung committed Sep 25, 2024
1 parent c37c36f commit a568b69
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ import users from './routes/user.routes';

const app = express();

app.use(helmet());
app.use(
helmet({
contentSecurityPolicy: {
directives: {
frameSrc: ['self', 'adrianleung.dev'],
},
},
})
);
app.use(RATE_LIMITER);
app.use(compression());
app.use(cors(CORS_OPTIONS));
Expand Down

0 comments on commit a568b69

Please sign in to comment.