Problem loading Embed Tweet within Website


#1

Guys,

we have some major issues, embedding tweets to our site.

Source-Code:

<blockquote class="twitter-tweet" lang="de"><p>Das Kind nicht fragen, wo es herkommt. An der Maske aber deren Trägerin erkennen. Klingt logisch. <a href="https://twitter.com/hashtag/Tatort?src=hash">#Tatort</a></p>— Niklas (@Fauteck) <a href="https://twitter.com/Fauteck/status/592413156808531972">26. April 2015</a></blockquote>

There are no problems, when trying to embed this tweet at our local site. But trying to implementate this to our production-server, it’s always trying to load http://platform.twitter.com/css/de.87994a3c2a0a6319d9ec1742aca9af09.light.ltr.css instead of http://platform.twitter.com/css/tweet.87994a3c2a0a6319d9ec1742aca9af09.light.ltr.css (within the iframe) what results to a AccessDenied and the Tweet dissapears.

Do you have any idea, what’s going wrong?


#2

You probably have a framework like prototype that is modifying Function.prototype.bind. prototype is known to modify bind in a way that is not spec compliant. widgets.js relies on a spec compliant bind(). You can verify it by trying this in the console of the page and you should get ‘native code’.

Function.prototype.bind
> function bind() { [native code] }
```

#3

Thank you very much! Indeed, prototype was the problem. Works now, thanks! :smile:


#4