fix: Bug Fixes and Feature Improvements to Linovelib Plugin (#1984)
* fix(linovelib): Searching not work * ci: fix branch cannot be correctly identified in forked environment * fix: BRANCH cannot be identified * fix(linovelib): correctly get cover image in redirect case of searching * fix: why we need a prefix slash here? remove it * chore(linovelib): update linovelib plugin version * fix: before LNReader puts its default UA to chrome, forcely set LNReader plugin's UA to Chrome's UA * refactor: intgrates FetchInit into plugin * feat: add chapter name transform * feat(linovelib): add decryptor for shuffle scramble of original html * feat(linovelib): use external server to extract shuffle coefficients * fix(linovelib): extract author name more precisely * fix(linovelib): set Referer header to bypass anti-leeching/hotlinking of image source Also, use LocalStorage to store coefficients and chapter.js version * refactor: delete FetchInit definition in this plugin * fix(linovelib): replace localStorage with storage utility for better data management * fix(linovelib): update storage import path to use the correct library * feat(linovelib): Implement chapter number * refactor(linovelib): as mobile site equipped with strong cloudflare challenge, move most of parsing logic to LDS server * fix(linovelib): update API calls to use query parameters instead of POST requests for novel, chapter, and search endpoints * fix(linovelib): add caching mechanism for novel and chapter parsing to reduce API calls * refactor(linovelib): refactor server URL handling to use class property for API requests * fix: apply changes pointed by review * docs(linovelib): make some comments
This commit is contained in:
@@ -66,6 +66,7 @@ const proxyHandlerMiddle: Connect.NextHandleFunction = (req, res) => {
|
||||
}
|
||||
res.setHeader('Access-Control-Allow-Origin', settings.CLIENT_HOST);
|
||||
res.setHeader('Access-Control-Allow-Credentials', 'true');
|
||||
req.headers.referer = rawUrl;
|
||||
if (req.method === 'OPTIONS') {
|
||||
res.statusCode = 200;
|
||||
res.end();
|
||||
|
||||
Reference in New Issue
Block a user