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
11,254 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,660 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 in Others by narikkadan
• 51,240 points
35 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
2,200 views
0 votes
1 answer

How to set margin for a Container in Flutter?

Hi@akhtar, Margin property is used to set empty ...READ MORE

answered Jul 29, 2020 in Others by MD
• 95,420 points
5,665 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
• 51,240 points
105 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,660 points
18,457 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,580 points
316 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