@lat = note.lat
@lon = note.lon
@zoom = 17
- elsif params[:gpx] && @user
- trace = Trace.visible_to(@user).find(params[:gpx])
+ elsif params[:gpx] && current_user
+ trace = Trace.visible_to(current_user).find(params[:gpx])
@lat = trace.latitude
@lon = trace.longitude
@zoom = 16
def id
append_content_security_policy_directives(
- :connect_src => %w[taginfo.openstreetmap.org *.mapillary.com],
- :img_src => %w[*],
- :script_src => %w[dev.virtualearth.net]
+ :connect_src => %w[*],
+ :img_src => %w[* blob:],
+ :script_src => %w[dev.virtualearth.net 'unsafe-eval']
)
render "id", :layout => false