Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Error message when requesting access token from a SharePoint Page using embedded Iframe (Refused to display.. in a frame because it set 'X-Frame-Options' to 'deny')

$
0
0
Hi 

I have injected a hidden iframe in my Master Page in order to request an access token that will be then used to call Rest APIs from my SharePoint Page

However, Chrome (version 79) returns this kind of error message in the Console Tab :
Refused to display : "https://../oauth2/authorize?response_type=token....&redirect_uri=https://.../Token.aspx"  in a frame because it set 'X-Frame-Options' to 'deny'

This access token request mechanism based on an embedded IFrame used to work fine with older chrome versions.

So, I was wondering if there is any workaround I can use to get my access token form my SharePoint page that will work with the current Chrome Version.

Thanks a lot for your help

Regards

arioule


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>