lib/onebox/engine/google_maps_onebox.rb in onebox-2.0.2 vs lib/onebox/engine/google_maps_onebox.rb in onebox-2.1.0
- old
+ new
@@ -21,9 +21,11 @@
end
end
always_https
+ requires_iframe_origins("https://maps.google.com", "https://google.com")
+
# Matches shortened Google Maps URLs
matches_regexp :short, %r"^(https?:)?//goo\.gl/maps/"
# Matches URLs for custom-created maps
matches_regexp :custom, %r"^(?:https?:)?//www\.google(?:\.(?:\w{2,}))+/maps/d/(?:edit|viewer|embed)\?mid=.+$"