scrapinghub / shub

Scrapinghub Command Line Client
https://shub.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
125 stars 80 forks source link

link to app.zyte.com instead of app.scrapinghub.com #431

Open HassanQamar07 opened 10 months ago

HassanQamar07 commented 10 months ago

After the project is deployed, the link to Run your Spider still points to app.scrapinghub.com, it was not a problem as it was being redirected to app.zyte.com, but it seems now we're having some issues as app.scrapinghub.com is not being redirected.

HassanQamar07 commented 10 months ago

PR: https://github.com/scrapinghub/shub/pull/432

rennerocha commented 10 months ago

If you open https://app.scrapinghub.com/p/12345/ you are not redirected to https://app.zyte.com/p/12345/. You remain in app.scrapinghub.com netloc.

This is a huge problem.

I tried to clone a job, so a call to POST | https://app.scrapinghub.com/api/v2/projects/12345/jobs was made. But because the way the API is configured, it failed with a 403 error and the following error message:

{"detail":"CSRF Failed: Referer checking failed - https://app.scrapinghub.com/p/12345/jobs does not match any trusted origins."}