fix: image editor not working in edit form

This commit is contained in:
trafficlunar 2026-04-24 22:14:04 +01:00
parent 48d388b1a7
commit d52d428f1f
2 changed files with 9 additions and 1 deletions

View file

@ -13,6 +13,14 @@ const nextConfig: NextConfig = {
{ key: "Access-Control-Allow-Headers", value: "Content-Type" },
],
},
{
// for images
source: "/mii/:path*",
headers: [
{ key: "Access-Control-Allow-Origin", value: process.env.NEXT_PUBLIC_FRONTEND_URL || "http://localhost:4321" },
{ key: "Access-Control-Allow-Credentials", value: "true" },
],
},
];
},
};