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