This commit is contained in:
parent
924bbd4285
commit
1a497d402d
@ -14,10 +14,11 @@ const fastify = Fastify({
|
||||
})
|
||||
|
||||
fastify.register(FastifyCors, {
|
||||
origin: [
|
||||
'http://localhost:3000',
|
||||
'tauri://localhost',
|
||||
],
|
||||
origin: (host, cb) => {
|
||||
console.log(host)
|
||||
|
||||
cb(null, true)
|
||||
},
|
||||
})
|
||||
|
||||
fastify.register(FastifyCookie)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user