• Resolved futureyoon

    (@futureyoon)


    Hi

    Is there a way to make this social login work within the iframe?

    For example,
    I have a website called ‘example.com’ and ‘goodwebsite.com’ and I set social login in goodwebsite.com and working fine.

    and when I iframe goodwebsite.com into example.com, I hope the user is able to login to goodwebsite.com via social login within the iframe of example.com.

    I have given a try and am getting an error saying
    “accounts.google.com refused to connect.”

    Is this ever possible with this plugin or even generally? Pleae kindly advise.

    Thank you

    • This topic was modified 4 years, 4 months ago by futureyoon.
Viewing 1 replies (of 1 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @futureyoon

    I am sorry, but what you are trying to achieve is not possible as that would be basically a security problem on the end of the social login providers. So this is not a limitation of Nextend Social Login, but a general limitation of websites and their HTTP header configurations.

    Anyways if you check the browser console when this problem occurs, you will probably see an error message something like this:
    Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.
    This error message means that, the “https://accounts.google.com/” was configured the way that it is not allowed to be loaded in iframed environments.

    Actually you can reproduce this problem easily with a simple iframe that displays the Google login page:
    <iframe src="https://accounts.google.com/signin/v2/identifier?flowName=GlifWebSignIn&flowEntry=ServiceLogin" title="My Google Login page in an iframe"></iframe>
    That will also return the same problem.

    Best regards,
    Laszlo.

Viewing 1 replies (of 1 total)

The topic ‘social login within the iframe’ is closed to new replies.