mirror of
https://github.com/andatoshiki/toshiki-home-nuxt3.git
synced 2026-06-06 05:45:56 +00:00
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:
parent
bea38bf75b
commit
47da4cd45d
@ -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 => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user