Skip to content

Commit

Permalink
cors 설정 비활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
BumgeunSong committed Jan 1, 2025
1 parent 1d917cb commit 42a4f1f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions functions/src/writingHistory/getWritingStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 42a4f1f

Please sign in to comment.