Embedded Tweets throw 403 when logged in via Twitter

AI-generated summary

Embedded Tweets throw 403 when logged in via Twitter

A user, Terrapop, is experiencing a 403 error when attempting to view embedded tweets after logging in via Twitter. Despite having API keys set up correctly and being able to log in without issues, the error persists. However, when logging out or deleting the Twitter cookie, the error disappears.

david suggests that the issue may be caused by Chrome’s changes to how samesite cookies are handled. He shares a topic on Twitter’s developer forum discussing the same issue.

After investigating further, Terrapop discovers an error during the sign-in process. david then pushes an update to work around the problem by rendering videos using the HTML native <video> element instead of an iframe.

I’m getting a weird 403 error for embedded tweets when I logged in via Twitter.

API keys set up correctly, the app is approved and login via Twitter is possible without problems.

When I log out or delete the Twitter cookie, the error disappears and the video loads fine.

Any suggestions?

I think this is being caused by Chrome rolling out changes to how samesite cookies are handled.

There is a topic on Twitter’s developer forum here:

Let’s try this one:

4 Likes

Although, I get this error during the sign in process. Did not notice at first, as I was okay logging in:

2 Likes

Nope, can’t see the video in your last post. Ok, so seem to be a more general and not specific error with my installation. Thanks @david

2 Likes

I just pushed an update which works around the problem. We will now render videos using the html native <video> element rather than an iframe:

4 Likes

This topic was automatically closed after 27 hours. New replies are no longer allowed.