anka-213 / webcomic_reader

Webcomic Reader userscript at
https://openuserjs.org/scripts/anka-213/Webcomic_Reader
MIT License
120 stars 27 forks source link

Batoto not working #78

Open kyonkun3020 opened 7 years ago

kyonkun3020 commented 7 years ago

Was working with no problems just yesterday, though i don't see any noticeable change to the site the pages do not preload

DCTest1 commented 7 years ago

works for me with firefox 53.0.3 and greasemonkey 3.11 on chrome with violentmonkey the only thing that doesn't work is minimal view

what have you done in the time where it broke?

matlai17 commented 7 years ago

It occurs on both Firefox and Chrome when the starting page is the http version of Batoto. It looks like, when the script attempts to retrieve the next page, the link that is returned is the https version. When the script attempts to load the page I think the browser blocks it for security reasons since the https version is somehow considered a seperate domain.

Firefox console: 'Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://bato.to/areader?id=9e222e381e9fdcd7&p=last. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).'

Chrome console: 'XMLHttpRequest cannot load https://bato.to/areader?id=b5caf5bb4282a718&p=2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://bato.to' is therefore not allowed access.'