Load denied by X-Frame-Options - does not permit cross-origin framing

622 views
Skip to first unread message

P Joshi

unread,
Dec 16, 2015, 7:35:03 PM12/16/15
to Google API JavaScript Client
I tried to run the sample code as given here : 
https://developers.google.com/youtube/v3/code_samples/javascript

When I tried to load html using http://localhost/<html-sample-file>, I immediately get the error in subject line as in: 
Load denied by X-Frame-Options: https://accounts.google.com/o/oauth2/auth?client_id=<myID> ... &origin=http%3A%2F%2Flocalhost%3A5000 ... (so on) ... does not permit cross-origin framing
 
The html just contains the following script tags (exactly as in the sample html file). 

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
   
<script src="auth.js"></script>
   
<script src="search.js"></script>
   
<script src="https://apis.google.com/js/client.js?onload=googleApiClientReady"></script>

Can anybody please explain / help to fix this problem?
Reply all
Reply to author
Forward
0 new messages