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