From 12ac7af853e51693f1bc7e49669974b9cd54e9bb Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 16 Nov 2018 11:14:32 -0500 Subject: RT# 81730 - added code to fix possible cross origin request error --- httemplate/misc/xmlhttp-openstreetmap.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 httemplate/misc/xmlhttp-openstreetmap.html (limited to 'httemplate/misc/xmlhttp-openstreetmap.html') diff --git a/httemplate/misc/xmlhttp-openstreetmap.html b/httemplate/misc/xmlhttp-openstreetmap.html new file mode 100644 index 000000000..bf6625c93 --- /dev/null +++ b/httemplate/misc/xmlhttp-openstreetmap.html @@ -0,0 +1,15 @@ +<% $return %>\ +<%init> + +my $DEBUG = 0; + +my $conf = new FS::Conf; + +my $return = {}; + +my $url = "http://nominatim.openstreetmap.org/search?format=json&limit=1&q=" . $cgi->param('loc'); + +use LWP::Simple; +my $return = get $url; + + \ No newline at end of file -- cgit v1.2.1