summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-25 15:56:26 +0200
committerGitHub <noreply@github.com>2021-06-25 15:56:26 +0200
commit4b01d11ebe6a13599571dd5f411e4bff60ff0256 (patch)
treeafb9eaf6a428df5a663f25ba1a82b11822dc4d66 /src/Server.ts
parentMerge pull request #159 from fosscord/l10n_master (diff)
parentCORS FIX (diff)
downloadserver-4b01d11ebe6a13599571dd5f411e4bff60ff0256.tar.xz
Merge pull request #160 from jhcpeixoto/master
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"));