Safari Twitter embed: 'View on Twitter' link throws up error.

I'm a web designer and regularly embed clients' Twitter feeds into my sites, like the one on http://jilldawson.co.uk 's home page. Only on the Safari browser, the link 'View on Twitter' at the bottom of the embed always throws up an error message: '403 Forbidden: The server understood the request, but is refusing to fulfill it.' This happens on every site when viewing the Twitter embed on Safari. The text link *works fine* on other browsers. Is this a Safari or a Twitter problem?


I've tried contacting the Apple Developer Program Support but they say they can't help me. Is there a solution?


Thanks

Posted on Apr 30, 2019 3:33 PM

Reply
5 replies

May 25, 2019 12:52 AM in response to John Biggins

I have been seeing it too. To the best of my knowledge, it is due to Safari's default privacy controls and Twitter retaliating. This seems to be a fight between Twitter and Apple about who may see what. I suppose the next step would be to change the user agent in the developer menu to see if Twitter is simply refusing to work with Safari, or if it's expecting access to local storage that Safari has turned off.


EDIT: changing the User Agent had no effect, but clearing all locally stored data from Twitter got rid of the 403 error. That leads me to think that the issue is due to a mismatched token.

May 26, 2019 12:56 AM in response to John Biggins

24 hours in, I haven't seen any 403 errors yet, but I have noticed a bug in Twitter: it is making multiple copies of `dm_typeahead` in the IndexedDB (see screenshot):


Twitter does seem to suffer from bloat, my theory is that this came from switching hash algorithms, and no graceful failure mode. (BTW, the 4 console errors are 404's from Doubleclick and twimg.com)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari Twitter embed: 'View on Twitter' link throws up error.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.