Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'

Viewed 299

I have a this problem while trying to connect with google authentication to my site, do you have any idea's how to fix it ?

This is the error that I get :

Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

Source code :

<iframe frameborder="0" style="position: relative; outline: none;" height="710" width="100%" src=" example " allow="geolocation example;" title="example " data-gtm-yt-inspected-12908112_11="true"></iframe>
1 Answers

Actually, I meet the same question like you. My manager needs me to find a way to combine 2 websites but not very time-consuming. So Iframe is the best potential way. But both of these 2 websites are using google oauth so it would jump to accounts.google.com which X-frame-options is deny. I suppose there isn't good way to solve iframe directly so I decide to change direction, using micro front-end.

Related