A user reported that embedded Google Maps stopped working on their Discourse forum, showing an empty iframe despite the link being valid and the embed working elsewhere. The issue was traced to the map URL containing /d/embed?, which wasn’t in the default allowed iframes list. supermathie confirmed that adding https://www.google.com/maps/d/embed? to the allowed list resolved the issue on try.discourse.org. Canapin noted that the embed worked again after rebaking posts, even though the URL was already allowed. Carl_Hashmi confirmed the same problem and workaround. The discussion concluded that while the /d/embed path should be considered for the default allowed list, it may not be necessary yet due to limited reports and the availability of a simple fix.
I embedded a map in a post by writing the link on a single line. It was working perfectly for days until it wasn’t… And I don’t know why.
The link is working, and the embedding of the same map works in my other Discourse.
I didn’t change any related setting and I still have https://www.google.com/maps/d/embed? in my allowed iframes.
No error in the js console, and nothing in logs. Safe-mode doesn’t fix the issue.
Any idea why the map doesn’t load anymore?
edit:
However, the iframe content is displayed if I directly paste this the iframe HTML code in my post.
Have they changed their embed path? I note on try that the default allowed iframes has https://www.google.com/maps/embed? but not https://www.google.com/maps/d/embed?
I just added https://www.google.com/maps/d/embed? to the allowlist, rebaked the posts and they are now working on try.
This is the issue I was facing and I already had /d/ in my iframe authorized URL, so I still don’t understand why it stopped working, and worked again later.
The only thing I did was to remove /d/ from the authorized URLs, and add it again…
(and I needed to rebake after anyway)