Posting Speaker Deck Presentations in Wordpress

Thomas Uhrig · June 26, 2012

I’ve recently tried to post a Spreaker Deck presentation on my Wordpress blog. But a problem using Google’s Chrome browser came up to me: Chrome throws a scripting exception when I post the embedded code.

The exception:

Refused to execute a JavaScript script. Source code of script found within request.

The embedded code:

Chrome seems to refuse the execution of the script - perhaps to prevent something like cross-site-scripting. But the solution is pretty simple. First, install a new plugin to your wordpress blog to embed Speacker Deck presentations. Then fix it by changing the method to:

wp_oembed_add_provider( ‘#http(s)?://speakerdeck.com/u/.*/p/.*#i’, ‘http://speakerdeck.com/oembed.json’, true );

Here’s the post for the fix. Thanks!

Plugin: http://wordpress.org/extend/plugins/speakerdeck-embed

Fix: http://wordpress.org/support/topic/plugin-speaker-deck-embed-add-https-support

Best regards, Thomas Uhrig