summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorJoaquim Peixoto <jhcpeixoto@outlook.pt>2021-06-25 14:54:13 +0100
committerJoaquim Peixoto <jhcpeixoto@outlook.pt>2021-06-25 14:54:13 +0100
commitef19ecedb7760617ceb4d215825ab9659c2797ad (patch)
treeafb9eaf6a428df5a663f25ba1a82b11822dc4d66 /src/Server.ts
parentMerge pull request #159 from fosscord/l10n_master (diff)
downloadserver-ef19ecedb7760617ceb4d215825ab9659c2797ad.tar.xz
CORS FIX
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
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"));