our index page code while we click load tweets it is not getting loaded even though we have integrated usng tweet.js it shows the following error Access to fetch at ‘https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=padmasri33kanna&count=10’ from origin ‘null’ 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.
api.twitter.com/1.1/statuses/user_timeline.json?screen_name=padmasri33kanna&count=10:1 Failed to load resource: net::ERR_FAILED tweets.js:25 Error fetching tweets: TypeError: Failed to fetch at fetchTweets (tweets.js:8:5) at HTMLButtonElement.<anonymous> (tweets.js:52:13) we tried using tweet.js giving all the api keys and access token that while clicking load tweets it gets loaded but it did not redirect to the next page
PADMASHREE U 23BCA037 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.