Revert "temp disable cors"

This reverts commit c8677ac548.
This commit is contained in:
Maidul Islam
2024-06-17 20:33:09 -04:00
parent e3beeb68eb
commit aaef339e21
+1 -1
View File
@@ -58,7 +58,7 @@ export const main = async ({ db, smtp, logger, queue, keyStore }: TMain) => {
await server.register<FastifyCorsOptions>(cors, { await server.register<FastifyCorsOptions>(cors, {
credentials: true, credentials: true,
origin: false origin: appCfg.SITE_URL || true
}); });
// pull ip based on various proxy headers // pull ip based on various proxy headers
await server.register(fastifyIp); await server.register(fastifyIp);