mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
14 lines
370 B
JavaScript
14 lines
370 B
JavaScript
const IpfsDaemon = require('ipfs-daemon')
|
|
module.exports = IpfsDaemon({
|
|
IpfsDataDir: './tmp',
|
|
API: {
|
|
HTTPHeaders: {
|
|
"Access-Control-Allow-Origin": ['*'],
|
|
"Access-Control-Allow-Methods": ["PUT", "GET", "POST"],
|
|
"Access-Control-Allow-Credentials": ["true"]
|
|
}
|
|
}
|
|
})
|
|
.then((res) => console.log("started"))
|
|
.catch((err) => console.error(err))
|