sinkaroid / jandapress

RESTful and experimental API for nhentai and other doujinshi
https://janda.merahputih.moe
MIT License
50 stars 17 forks source link

cant bypass cloudflare #32

Open zYxDevs opened 8 months ago

zYxDevs commented 8 months ago

I've installing chromium with snap, set cookies and user agent, but still got http error 403 when try npm run test:cf.

Can you please make details step by step to install chrome/chromium or firefox and set cookies.

sinkaroid commented 8 months ago

Is the cookie correct from Request Headers, not the Response Headers? Here the example https://github.com/sinkaroid/jandapress/blob/master/README.md#the-solution-1 Screenshot_267_copy

sinkaroid commented 8 months ago

You running firefox with remote gui on ubuntu or what

zYxDevs commented 8 months ago

You running firefox with remote gui on ubuntu or what

i didnt use ubuntu gui. im installing chromium with snap (tutorial from google)

please make tutorial if you can

zYxDevs commented 8 months ago

Is the cookie correct from Request Headers, not the Response Headers? Here the example https://github.com/sinkaroid/jandapress/blob/master/README.md#the-solution-1 Screenshot_267_copy

yes i use cookie from request headers (default UA) Screenshot_20231019-175506_Kiwi Browser

sinkaroid commented 8 months ago

Inspect > Network Conditions > Uncheck browser default and set jandapress/1.0.6 Node.js/16.9.1 here

Screenshot_133 Screenshot_134

Also could u screenshot the .env too

zYxDevs commented 6 months ago

Inspect > Network Conditions > Uncheck browser default and set jandapress/1.0.6 Node.js/16.9.1 here

Screenshot_133 Screenshot_134

Also could u screenshot the .env too

ive successfully deployed and nhentai api is working fine. but cookie can expired and need manually update it. can you make cookie updated automatically?