I am using Delphi & the DCEF (Delphi Chromium Embedded Framework) to load a local HTML file into a browser embedded within a form. The HTML file is trying to display a Google Map & has the line -
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true&v=3.6&client=gme-{mycompanyid}"></script>
but the problem is that the URL sent as the referer to Google APIs is
HTTP://127.0.0.1/mypage.html
We have already authorised our website URLs for our Business Client ID, and we want to use the same Business Client ID for this desktop application.
My question is - how can I get the calls to Google API to use a different referer ? I think its not possible.
OnBeforeBrowse
event ? – TLama Jul 31 '13 at 11:42The HTML file is trying to display a Google Map
. So why you not pass the correct URLhttp://ourBusiness.com/myPage.html
to your embedded browser ? – moskito-x Jul 31 '13 at 19:28