Google Maps API Troubles

I have a website that uses a google map on one of it’s pages. The website is a .com, but the same website as a .net forwards to it. When a user logs on to the .net site and it forwards to the .com site I get an error message saying that thhe google api key is wrong.

Does anyone know of a simple fix for this?

Thanks in advance.