0

I am using Google Map Api for getting location based on ZIP codes. Its in angularJs. Its working perfectly when I open the website with .com domain.

But when I open it with .ch or .de domain its showing

Oops! Some error occured

My implementaion is like this

<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
  type="text/javascript"></script>

This error I m getting in my console : http://prntscr.com/dronsl

vikash5472
  • 200
  • 2
  • 16

1 Answers1

0

I got the issue thaks to @Ramesh, still i m responding to this question. It may help someone else.

The issue was with the API key , I generated a new API key and set the referrer urls while doing so.

Initially it was not working without referrer setting, But now its working fine even if I remove referrers from the API console.

vikash5472
  • 200
  • 2
  • 16