I have a application wants to embed google map, and it is required that the key is put into a config file. So here is what I do:
In config.js
GOOGLE_MAP_KEY = "mykeyofgoogleapi";
In index.html
<script type="text/javascript" 
        src="https://maps.googleapis.com/maps/api/js?key="+GOOGLE_MAP_KEY+"&sensor=true">
</script>
The problem is that I see the GET URL to google is only
Request URL:  https://maps.googleapis.com/maps/api/js?key=
the rest of the URL is lost.
Looks I did something bad in concat the URL like this. What is wrong?
 
     
     
     
    