Skip to content

Commit

Permalink
fix: allow fonts and style from googleapis
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterMoar committed Feb 19, 2025
1 parent 0a1c962 commit 5623596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const app = express();

// Set the CSP header so that external media cannot be displayed in the forms.
app.use((_req, res, next) => {
res.setHeader('Content-Security-Policy', "default-src 'self'; font-src 'self'");
res.setHeader('Content-Security-Policy', "default-src 'self'; font-src 'self' https://fonts.gstatic.com; style-src 'self' https://fonts.googleapis.com");
next();
});

Expand Down

0 comments on commit 5623596

Please sign in to comment.