Refused to display in a frame because it set X-Frame-Options to SAMEORIGIN

0 votes

I am developing a website that is supposed to be responsive so that people can access it from their phones. The site has got some secured parts that can be logged into using Google or Facebook. The server backend is developed using ASP.Net Web API 2 and the front end is mainly AngularJS with some Razor. For the authentication part, everything is working fine in all browsers including Android but the Google authentication is not working on iPhone and it gives me this error message

Refused to display 'https://accounts.google.com/o/openid2/auth ?openid.ns=http://specs.openid.ne…tp://axschema.org/namePerson /last&openid.ax.required=email,name,first,last' 
in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Now as far I am concerned I do not use any iframe in my HTML files.

I googled around, but no answer got me to fix the issue.

Feb 18, 2022 in Others by Rahul
• 9,670 points
21,299 views

1 answer to this question.

0 votes

 I managed to solve the issue by adding &output=embed to the end of the url before posting to the google URL mentioned below:

var url = data.url + "&output=embed"; window.location.replace(url);

answered Feb 18, 2022 by Aditya
• 7,680 points

Related Questions In Others

0 votes
1 answer

How can a column be set to display multiple spaces and tabs (white space) in a cell?

By entering your "code" in Word and ...READ MORE

answered Jan 19, 2023 in Others by narikkadan
• 63,420 points
312 views
0 votes
1 answer

How to set a column as a range variable as long as there is data in it?

Try this: Dim rng As Range Set rng = ...READ MORE

answered Feb 16, 2023 in Others by narikkadan
• 63,420 points
367 views
0 votes
1 answer

What is a name function in JavaScript & how to define it?

A named function declares a name as ...READ MORE

answered Mar 7, 2019 in Others by Frankie
• 9,830 points
4,248 views
0 votes
1 answer

SEO With Angular and ASP.NET MVC (not SPA)

the best thing you can do is ...READ MORE

answered Feb 17, 2022 in Others by narikkadan
• 63,420 points
372 views
0 votes
1 answer

Web API Error - This request has been blocked; the content must be served over HTTPS

 If your web app is being hosted ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
33,826 views
0 votes
0 answers
0 votes
0 answers

ASP.NET Web API Connecting to MySQL Database

I'm new to C# and.Net programmes, but ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
766 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP