-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoint appears to be broken #1
Comments
Update: after some digging, it has become apparent that they have started locking down the endpoints with extra controls. For example, the main AJAX endpoint is now checking the Origin header, and has obviously whitelisted their own "Amazon Assistant" domains, including " Two requests made from Postman, with all headers and data identical except for the Since the request need to pass credentials (e.g. the signed-in cookie), I can't proxy the request through CORS-anywhere, or any other custom proxy. And spoofing the origin is not a good idea for several reasons, starting with it being flat-out not possible with a vanilla installation of Chrome and no tweaking. At this point, it seems this is probably not going to be possible to get around. Amazon seems really determined to kill off third-party product integrations (I also noticed that they got around to removing some random pages that mentioned the old Universal Add To Wishlist features). If I have some more spare time, I might try to find another workaround, but I don't have high hopes and might just archive this repo... |
After a little more digging, it does indeed appear as though this is going to be the final "nail in the coffin" for adding non-Amazon items to an Amazon wishlist, other than using the official Amazon Assistant extension. With all the old endpoints deprecated, and the only remaining functional endpoint I could find locked down by origin, and without an API, I can't see a way forward on this. Summary of what I found:Killed off pages:
Moving foward:I will likely place this repo into "archive mode", update the README to reflect the status, and update my project page on my website to reflect this. |
If there is any way to make this work - such as via Postman - then I would prefer it over installing Amazon's spyware on my computer. Is there any successor to this bookmarklet or any resources you can provide to make it possible to add external links to a wishlist by any means other than by using their extension? Edit: I was able to create a separate browser profile just to contain the extension. |
@LoganDark It definitely should be possible to do this from outside the browser (because then you can spoof I'm still annoyed about this to this day (I'm not a fan of browser spyware either!) EDIT: I suppose if I had to do this over today, I would probably rewrite this as a CLI instead of a browser extension. You could even pass the auth token / cookie from the browser to the CLI and persist it for as long as possible. Still would be a good chunk of work to rewrite all this and workaround Amazon's restrictions.
Smart thinking! |
I have been able to successfully reverse engineer the add to wishlist flow here: https://gist.github.com/mjsir911/a3bc9bb23775158e240dc56a9717f9f7 |
Thank you so much! |
Nice work! |
Trying to add item via AJAX seems to have broken; my guess is the endpoint changed or the named params change. Need to look into this and fix.
The text was updated successfully, but these errors were encountered: