Google maps disappear in FireFox after logging in with Google

I have a page with an embedded Google map (iframe). This works fine initially.

However, when I log in using this Socal Login plugin and Google, my maps disappear when viewed in FireFox!
If I copy the iframe source and paste it into a new tab I get the following message:

"We are sorry, but you do not have access to this service. Please contact your domain administrator for access."

image

Even if I log out, the maps are still missing.

I've traced it to a cookie that is added when logging in with this plugin and Google:
google.com > HSID

If I delete it, the maps come back.

Is there a way around this issue?

Best Answer

Answers

  • Hi,
    Thanks for reporting this.
    Could you share the code that displays the google map (the iframe) ?
    So we can try to reproduce your error.

    Thanks.
  • edited August 2015
    Hi,

    Sure, here's an example:
    <iframe src="https://www.google.com/maps/d/embed?mid=z7CKlB5eYaDE.kzmUQUv2MCcg&amp;z=16" height="250" width="100%"></iframe>

    Thanks
    Chris
  • And here's the console error after a successful login:

    Timestamp: 18/08/2015 15:44:16
    Error: Load denied by X-Frame-Options: https://admin.google.com/ServiceNotAllowed?service=mymaps&amp;continue=https://www.google.com/maps/d/embed?mid=z7CKlB5eYaDE.kzmUQUv2MCcg&z=16&wmode=transparent does not permit cross-origin framing.
  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Hi Chris,

    could you please post a link to your website?
    I will have a look.

    Regards,
  • Hi Claude,

    The site is still on an internal development server. We hope to go live in the next couple of months.
    Is it just me that has the problem?

    Chris
  • Hi,
    Your google maps iframe does work on our wordpress test environment.
    Do you have a specific configuration directive for your web server?
    (such as x-frame-options headers)

    regards.
  • Hi,

    No, no x-frame options are defined.
    The iframe works fine until I've authenticated with Google.

    Does the iframe in your test environment still work in FireFox after signing in with Google?

    Thanks
    Chris
  • Hi,
    Yes, it does work after signing in with Google via Social Login.

    Do you notice any error message in the console on the page with maps iframe before signing in (and while not signed in with Google, with or without Social Login) ?

    Also, could we access your page somehow? (you mention it is under development)
  • Fred_PinelFred_PinelMember
    edited September 2015
    Hi,

    Maybe you can try adding &output=embed to the Maps source link (as per stackoverflow :-).

    Also, are you sure a non-public Google Map can be displayed in an iframe? (which would explain the x-frame-option)

    regards.
  • Great, thanks for the detailed answer.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.