From 42a4f1f982c3aca0707a20a02b204672099d6de6 Mon Sep 17 00:00:00 2001 From: BumgeunSong Date: Tue, 31 Dec 2024 13:50:53 +0900 Subject: [PATCH] =?UTF-8?q?cors=20=EC=84=A4=EC=A0=95=20=EB=B9=84=ED=99=9C?= =?UTF-8?q?=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/src/writingHistory/getWritingStats.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/functions/src/writingHistory/getWritingStats.ts b/functions/src/writingHistory/getWritingStats.ts index 02767cc..8f4ffea 100644 --- a/functions/src/writingHistory/getWritingStats.ts +++ b/functions/src/writingHistory/getWritingStats.ts @@ -31,11 +31,7 @@ const calculateTotalContributions = (contributions: Contribution[]): number => { export const getWritingStats = onRequest( { - cors: [ - 'http://localhost:5173', - 'https://www.dailywritingfriends.com', - 'https://dailywritingfriends.com' - ] + cors: true }, async (req, res) => { if (req.method !== 'GET') {