Merge pull request '[PR]: Fix invalid CSP policy' (#10296) from esm/calckey:fix/note-csp-urls into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10296
This commit is contained in:
commit
f6c2acc7f5
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ router.get("/notes/:note", async (ctx, next) => {
|
||||||
ctx.set("Cache-Control", "public, max-age=15");
|
ctx.set("Cache-Control", "public, max-age=15");
|
||||||
ctx.set(
|
ctx.set(
|
||||||
"Content-Security-Policy",
|
"Content-Security-Policy",
|
||||||
"default-src 'self' 'unsafe-inline'; img-src '*'; frame-ancestors '*'",
|
"default-src 'self' 'unsafe-inline'; img-src *; frame-ancestors *",
|
||||||
);
|
);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue