From 47da4cd45df52e96721e4ea68d9b073eb03e9aea Mon Sep 17 00:00:00 2001 From: Anda Toshiki <101481353+andatoshiki@users.noreply.github.com> Date: Thu, 9 May 2024 01:21:31 -0700 Subject: [PATCH] fix(cors origin): update allowed cors origin for http get method during local developmental environment instead of wildcard avoiding invalid value for cors policy --- netlify/functions/getLastFmSongs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify/functions/getLastFmSongs.ts b/netlify/functions/getLastFmSongs.ts index 9d8d219..093985f 100755 --- a/netlify/functions/getLastFmSongs.ts +++ b/netlify/functions/getLastFmSongs.ts @@ -22,7 +22,7 @@ const handler: Handler = async () => { ] // Origin for CORS - const origin = process.env.NODE_ENV === 'production' ? 'https://toshiki.dev' : 'http://localhost:*' + const origin = process.env.NODE_ENV === 'production' ? 'https://toshiki.dev' : 'http://localhost:3000' // Map track function const mapTrack = (track: any): any => {