Skip to content
Snippets Groups Projects
Commit 82568f91 authored by Falk's avatar Falk :ping_pong:
Browse files

fix: Adds google fonts to CSP policies.

parent 77f7c677
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ app.use(helmet()); ...@@ -39,7 +39,7 @@ app.use(helmet());
app.use(helmet.contentSecurityPolicy({ app.use(helmet.contentSecurityPolicy({
directives: { directives: {
defaultSrc: ["'self'"], defaultSrc: ["'self'"],
styleSrc: ["'self' 'unsafe-inline'"], styleSrc: ["'self' 'unsafe-inline' 'https://font.googleapis.com'"],
scriptSrc: ["'self' 'unsafe-inline' 'unsafe-eval'"] scriptSrc: ["'self' 'unsafe-inline' 'unsafe-eval'"]
} }
})); }));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment