diff --git a/server/routes/index.ts b/server/routes/index.ts index 712f221dee..0e0c1950bc 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -105,6 +105,7 @@ router.get("/locales/:lng.json", async (ctx) => { "ETag", crypto.createHash("md5").update(stats.mtime.toISOString()).digest("hex") ); + res.setHeader("Access-Control-Allow-Origin", "*"); }, root: path.join(__dirname, "../../shared/i18n/locales"), });