lib/onebox/engine/bandcamp_onebox.rb in onebox-2.0.2 vs lib/onebox/engine/bandcamp_onebox.rb in onebox-2.1.0
- old
+ new
@@ -6,9 +6,10 @@
include Engine
include StandardEmbed
matches_regexp(/^https?:\/\/.*\.bandcamp\.com\/(album|track)\//)
always_https
+ requires_iframe_origins "https://bandcamp.com"
def placeholder_html
og = get_opengraph
"<img src='#{og.image}' height='#{og.video_height}' #{og.title_attr}>"
end