fix: security issue fixed by not assigning download blob url to button, instead create a html element and auto click it for download

This commit is contained in:
theoleuthardt 2025-02-19 14:39:40 +01:00
parent 3bcd052235
commit b4d7bccc57
3 changed files with 31 additions and 23 deletions

View file

@ -6,7 +6,12 @@ import { colorConvert } from "./src/routes/colorconvert.route";
const app = Fastify({ logger: true });
app.register(cors, { origin: "*", exposedHeaders: 'Content-Disposition' });
app.register(cors, {
origin: "*",
exposedHeaders: "Content-Disposition",
methods: "POST",
allowedHeaders: "Content-Type",
});
app.register(multipart);
app.register(libreConvert);
app.register(colorConvert);