# Problem retrieving data from cross domain html into iframe via PHP CURL

**URL:** https://forum.kirupa.com/t/problem-retrieving-data-from-cross-domain-html-into-iframe-via-php-curl/633893
**Category:** web dev
**Created:** [October 28, 2015, 3:05pm UTC](https://forum.kirupa.com/t/problem-retrieving-data-from-cross-domain-html-into-iframe-via-php-curl/633893 "2015-10-28T15:05:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![NeonPetition](https://avatars.discourse-cdn.com/v4/letter/n/b5ac83/32.png) [@NeonPetition](https://forum.kirupa.com/u/NeonPetition)
#### Post date: [October 28, 2015, 3:05pm UTC](https://forum.kirupa.com/t/problem-retrieving-data-from-cross-domain-html-into-iframe-via-php-curl/633893/1 "2015-10-28T15:05:00Z")

</div>

I have created a map using My Maps from Google and currently embedding it on my site using an IFRAME.

I would like to style certain elements on the google map, which is fine, I have found a way to do that but this is where the problem comes in.

The map is “re-built” in an external php file using a CURL request and then loaded into the IFRAME. It loads fine, but I get the following error:

> This page was unable to display a Google Maps element. This URL is not authorized to use the provided Google Maps Client ID. Error Code: UnauthorizedURLForClientIdMapError

Does this mean I need to somehow autorise the IFRAME?

Any help and tips would be appreciated.

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [October 28, 2015, 5:36pm UTC](https://forum.kirupa.com/t/problem-retrieving-data-from-cross-domain-html-into-iframe-via-php-curl/633893/2 "2015-10-28T17:36:44Z")

</div>

When you setup the Maps API, you are asked which domains will be serving the map. Is the URL the map is being served from (the domain of the PHP file) different than the one you originally specified during setup?

---

<div class="post-metadata">

### Author: ![NeonPetition](https://avatars.discourse-cdn.com/v4/letter/n/b5ac83/32.png) [@NeonPetition](https://forum.kirupa.com/u/NeonPetition)
#### Post date: [October 29, 2015, 5:28am UTC](https://forum.kirupa.com/t/problem-retrieving-data-from-cross-domain-html-into-iframe-via-php-curl/633893/3 "2015-10-29T05:28:23Z")

</div>

Hello, and thank you for your reply!

Perhaps I am following the wrong route here:

- I logged into my Google account
- Went to Maps
- Selected “My Maps” from the menu on the left
- Then created a new map from there

I was not asked to set up any API.
