mirror of
https://github.com/mdtahseen7/AnimepaheApi.git
synced 2026-04-18 00:21:45 +00:00
Bypassed CORS
This commit is contained in:
@@ -219,9 +219,9 @@ class AnimePahe {
|
|||||||
*/
|
*/
|
||||||
async resolveKwikWithNode(kwikUrl) {
|
async resolveKwikWithNode(kwikUrl) {
|
||||||
try {
|
try {
|
||||||
// Extract referer from kwik URL
|
// Extract referer from kwik URL - use full embed URL as referer
|
||||||
const kwikUrlObj = new URL(kwikUrl);
|
const kwikUrlObj = new URL(kwikUrl);
|
||||||
const kwikReferer = `${kwikUrlObj.protocol}//${kwikUrlObj.host}/`;
|
const kwikReferer = kwikUrl; // Full embed URL works better than just the host
|
||||||
const kwikOrigin = `${kwikUrlObj.protocol}//${kwikUrlObj.host}`;
|
const kwikOrigin = `${kwikUrlObj.protocol}//${kwikUrlObj.host}`;
|
||||||
|
|
||||||
// Fetch Kwik page
|
// Fetch Kwik page
|
||||||
|
|||||||
Reference in New Issue
Block a user