:frame_src => %w[http://127.0.0.1:8111 https://127.0.0.1:8112],
:connect_src => [NOMINATIM_URL, OVERPASS_URL, OSRM_URL, GRAPHHOPPER_URL],
:form_action => %w[render.openstreetmap.org],
:frame_src => %w[http://127.0.0.1:8111 https://127.0.0.1:8112],
:connect_src => [NOMINATIM_URL, OVERPASS_URL, OSRM_URL, GRAPHHOPPER_URL],
:form_action => %w[render.openstreetmap.org],
:script_src => [MAPQUEST_DIRECTIONS_URL],
:img_src => %w[developer.mapquest.com]
)
:script_src => [MAPQUEST_DIRECTIONS_URL],
:img_src => %w[developer.mapquest.com]
)
def current_ability
# Use capabilities from the oauth token if it exists and is a valid access token
if Authenticator.new(self, [:token]).allow?
def current_ability
# Use capabilities from the oauth token if it exists and is a valid access token
if Authenticator.new(self, [:token]).allow?