PWA fixes

This commit is contained in:
emad-salah 2021-02-07 17:45:56 +01:00
parent 0f0e428391
commit 54bb3e6ee1
2 changed files with 3 additions and 2 deletions

View file

@ -1,8 +1,9 @@
const setAccessControlHeaders = (req, res) => {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "OPTIONS,POST,GET,PUT,DELETE")
res.header(
"Access-Control-Allow-Headers",
"Origin, X-Requested-With, Content-Type, Accept, Authorization"
"Origin, X-Requested-With, Content-Type, Accept, Authorization, public-key-for-decryption"
);
};

View file

@ -1124,7 +1124,7 @@ module.exports = async (
app.get('/api/lnd/listchannels', async (_, res) => {
try {
return res.json({
channels: await LV2.listChannels()
channels: await LV2.listChannels({ active_only: false })
})
} catch (e) {
console.log(e)