Skip to content

Commit

Permalink
kek
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Apr 2, 2024
1 parent 170a0f8 commit 724599c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/meteor/app/cors/server/cors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ declare module 'meteor/webapp' {
settings.watch<boolean>(
'Enable_CSP',
Meteor.bindEnvironment(async (enabled) => {
templatePromise = await WebAppInternals.setInlineScriptsAllowed(!enabled);
templatePromise = WebAppInternals.setInlineScriptsAllowed(!enabled);
templatePromise = void 0;
}),
);

WebApp.rawConnectHandlers.use(async (_req: http.IncomingMessage, res: http.ServerResponse, next: NextFunction) => {
if (templatePromise) {
await templatePromise;
templatePromise = void 0;
}

// XSS Protection for old browsers (IE)
Expand Down

0 comments on commit 724599c

Please sign in to comment.