fix(cors origin): update allowed cors origin for http get method during local developmental environment instead of wildcard avoiding invalid value for cors policy

This commit is contained in:
Anda Toshiki 2024-05-09 01:21:31 -07:00
parent bea38bf75b
commit 47da4cd45d

View File

@ -22,7 +22,7 @@ const handler: Handler = async () => {
] ]
// Origin for CORS // 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 // Map track function
const mapTrack = (track: any): any => { const mapTrack = (track: any): any => {