mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-16 11:37:44 +08:00
* 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
14 lines
316 B
JavaScript
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;
|
|
};
|