Explore Courses Blog Tutorials Interview Questions
0 votes
in Web Technology by (47.6k points)

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, Facebook, ...etc (OAuth).

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 Google authentication is not working on iPhone and it gives me this error message

Refused to display ' ?openid.ns=…tp:// /last&,name,first,last' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

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

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

1 Answer

0 votes
by (106k points)

You can use the below mentioned piece of code:-

var url = url.replace("watch?v=", "v/");

Browse Categories