Merge branch 'main' into community-search

This commit is contained in:
Alec Armbruster 2023-06-29 07:31:50 -04:00 committed by GitHub
commit d9d4a3195f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ export function setDefaultCsp({
}) {
res.setHeader(
"Content-Security-Policy",
`default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src *`
`default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src * data:`
);
next();
@ -30,7 +30,7 @@ export function setCacheControl({
next: NextFunction;
}) {
const user = UserService.Instance;
let caching;
let caching: string;
if (user.auth()) {
caching = "private";
} else {