From ef19ecedb7760617ceb4d215825ab9659c2797ad Mon Sep 17 00:00:00 2001 From: Joaquim Peixoto Date: Fri, 25 Jun 2021 14:54:13 +0100 Subject: CORS FIX --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index 452bc1fe..f979dab2 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -66,8 +66,8 @@ export class FosscordServer extends Server { await Config.init(); this.app.use(GlobalRateLimit); - this.app.use(Authentication); this.app.use(CORS); + this.app.use(Authentication); this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 2 })); const languages = await fs.readdir(path.join(__dirname, "..", "locales")); const namespaces = await fs.readdir(path.join(__dirname, "..", "locales", "en")); -- cgit 1.5.1