allow iframes for notes
This commit is contained in:
parent
abe8474883
commit
90c0e4e9ed
|
@ -107,10 +107,9 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
userId: user.id,
|
||||
});
|
||||
if (antennas.length > 5 && !user.isAdmin) {
|
||||
throw new ApiError(meta.errors.tooManyAntennas)
|
||||
throw new ApiError(meta.errors.tooManyAntennas);
|
||||
}
|
||||
|
||||
|
||||
if (ps.src === "list" && ps.userListId) {
|
||||
userList = await UserLists.findOneBy({
|
||||
id: ps.userListId,
|
||||
|
|
|
@ -422,6 +422,10 @@ router.get("/notes/:note", async (ctx, next) => {
|
|||
});
|
||||
|
||||
ctx.set("Cache-Control", "public, max-age=15");
|
||||
ctx.set(
|
||||
"Content-Security-Policy",
|
||||
"default-src 'self'; frame-ancestors '*'",
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue