rishuk51 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Javascipt “Hello Analytics” API tutorial -- Repeated "refused to display... in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. #679

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Core Reporting API

Name of related library and version, if applicable (e.g. Java, Python,
HTTP, Objective-C, etc.):

Issue summary:
I've been trying to run the 
https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/w
eb-js tutorial to get up and running with pulling data programmatically from 
Google Analytics.

I've copied the sample files exactly, but when I access them via localhost in 
Chrome, I get the following error in the JavaScript console:
Refused to display 
'https://accounts.google.com/o/oauth2/postmessageRelay?parent=http%3A%2F%2Flocal
host%3A8000#rpctoken=1896059173&forcesecure=1' in a frame because it set 
'X-Frame-Options' to 'SAMEORIGIN'.

On the page, I get the text from the h1 tag and then an empty box. 

When I click the link in the error message, I get directed to a page with this 
error:
Bad Request
Error 400

I've tried multiple Client_ID's created in the Developer Console for Web Apps 
and included my local url. 

Original issue reported on code.google.com by quiksilv...@gmail.com on 26 Jun 2015 at 8:57

GoogleCodeExporter commented 8 years ago
Issue stopped when I cleared my cookies. Don't understand it, but it works!

Original comment by quiksilv...@gmail.com on 30 Jun 2015 at 8:15

GoogleCodeExporter commented 8 years ago

Original comment by pfrise...@google.com on 30 Jun 2015 at 8:20