DeleteTweets icon indicating copy to clipboard operation
DeleteTweets copied to clipboard

CORS error :(

Open kodama12 opened this issue 1 year ago • 8 comments

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

kodama12 avatar May 18 '24 07:05 kodama12

I second this

favi2000 avatar May 18 '24 20:05 favi2000

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.

GeoffYoung avatar May 18 '24 20:05 GeoffYoung

I figured that could have happened, thanks!

favi2000 avatar May 18 '24 20:05 favi2000

thank you people

oth-libs avatar May 19 '24 14:05 oth-libs

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.

DealsBeam avatar May 22 '24 00:05 DealsBeam

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.

fansxcel avatar Jun 03 '24 21:06 fansxcel

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.

johnkeese avatar Jun 04 '24 09:06 johnkeese

⚠️ 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.

oth-libs avatar Jun 12 '24 22:06 oth-libs