Files
RSSHub/lib/routes/fanbox/header.js
Sukka d82847f541 style/chore(eslint): enforce new rules (#8040)
* style: prefer object shorthand syntax
* refactor: prefer Array#map over Array#forEach
* style: prefer arrow callback
* chore(eslint): update rules
* style: auto fix by eslint
2021-08-17 22:23:23 +08:00

14 lines
316 B
JavaScript

const config = require('@/config').value;
// unlock contents paid by user
module.exports = () => {
const sessid = config.fanbox.session;
let cookie = '';
if (sessid) {
cookie += `FANBOXSESSID=${sessid}`;
}
const headers = { origin: 'https://fanbox.cc', cookie };
return headers;
};