Lyfhael / DeleteTweets

Delete / Remove all your tweets
MIT License
734 stars 161 forks source link

CORS error :( #52

Open kodama12 opened 6 months ago

kodama12 commented 6 months ago

Hello,

when i try to execute, this is what i get

Access to fetch at 'https://twitter.com/i/api/graphql/[...]_download_video_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D' from origin 'https://x.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Thanxs

sfang06 commented 6 months ago

I second this

GeoffYoung commented 6 months ago

Twitter was switched over to x.com as of May 17th 2024 which broke the script.
I was able to get it working by replacing all instances of twitter.com with x.com before copying it into the console.

sfang06 commented 6 months ago

I figured that could have happened, thanks!

oth-libs commented 6 months ago

thank you people

DealsBeam commented 6 months ago

Twitter was switched over to x.com as of May 17th 2024 which broke the script. I was able to get it working by replacing all instances of twitter.com with x.com before copying it into the console.

I did this and I'm still getting the error.

fansxcel commented 5 months ago

Twitter was switched over to x.com as of May 17th 2024 which broke the script. I was able to get it working by replacing all instances of twitter.com with x.com before copying it into the console.

I did this and I'm still getting the error.

I think i found a fix for this. Go to your settings, and then my account. It'll prompt you to log in, so log in, then go back to your profile and try to use this code again. I just spent hours running various scenarios and it's finally working. I started off with the cors error. then some 403's and other various errors. Keep at it. it very much still works.

johnkeese commented 5 months ago

Twitter was switched over to x.com as of May 17th 2024 which broke the script. I was able to get it working by replacing all instances of twitter.com with x.com before copying it into the console.

I believe the script has already been updated with this.

What worked for me was by habit my browser was on twitter.com/my_handle. I updated my browser URL to x.com/my_handle and re-ran the script and it worked fine.

oth-libs commented 5 months ago

⚠️ they changed it back to twitter.com

Access to fetch at 'https://x.com/i/api/graphql//UserTweetsAndReplies.......' from origin 'https://twitter.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.