UI updates and remove CSP for plugins

This commit is contained in:
KingKDot
2026-05-15 11:52:26 -05:00
parent da3bec8de1
commit 12972d6e8b
7 changed files with 86 additions and 63 deletions
@@ -1065,9 +1065,9 @@ export async function handlePluginRoutes(
return new Response(null, { status: 304 });
}
return new Response(injected, {
headers: { ...deps.secureHeaders("text/html; charset=utf-8"), "Cache-Control": "no-cache", ETag: etag },
});
const frameHeaders = { ...deps.secureHeaders("text/html; charset=utf-8"), "Cache-Control": "no-cache", ETag: etag };
delete (frameHeaders as any)["Content-Security-Policy"];
return new Response(injected, { headers: frameHeaders });
}
const pluginPageMatch = url.pathname.match(/^\/plugins\/([^/]+)$/);
@@ -1166,9 +1166,9 @@ export async function handlePluginRoutes(
</body>
</html>`;
return new Response(html, {
headers: { ...deps.secureHeaders("text/html; charset=utf-8"), "Cache-Control": "no-cache", ETag: etag },
});
const pageHeaders = { ...deps.secureHeaders("text/html; charset=utf-8"), "Cache-Control": "no-cache", ETag: etag };
delete (pageHeaders as any)["Content-Security-Policy"];
return new Response(html, { headers: pageHeaders });
}
const pluginAssetMatch = url.pathname.match(/^\/plugins\/([^/]+)\/assets\/(.+)$/);