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