google-code-export / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
1 stars 2 forks source link

Trying to access google calendar using the calendar api- the script is stopped by the browser with an error message x-frame options :https://www.googleapis.com/....../ does not permit cross domain framing #527

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:

GWT 2.5.1, app engine sdk: 1.8.7
Platform information (OS, Browser, GWT version).  Does the issue exist on
other platforms?
AFIK, it is a cross-domain load error

Give a Detailed description of the problem.  If possible, please include
some code that reproduces the problem and a verbatim copy of any error
messages you can find.

The example google calendar code at 
http://gwt-google-apis.googlecode.com/svn/trunk/apis/samples/calendar/demo/Calen
darSample.html does not work , because of the same error. The error I beleive 
is 

Refused to display 
'https://www.googleapis.com/static/proxy.html?jsh=m%3B%2F_%2Fscs%2Fapps-stat…x
Gwg#parent=http%3A%2F%2Fgwt-google-apis.googlecode.com&rpctoken=290110019' in a 
frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Workaround if you have one:

Links to the relevant Google Group posts:

Original issue reported on code.google.com by arunmpra...@gmail.com on 16 Nov 2013 at 5:25

GoogleCodeExporter commented 9 years ago
This is a known issue, arising from a recent change in the underlying 
JavaScript client library. A fix for it has been proposed and I'll try to get 
this fix pushed to the public repository next week.

Until then, the fix is to change [1] to point to content.googleapis.com instead 
of www.googleapis.com

[1] 
https://code.google.com/p/gwt-google-apis/source/browse/trunk/apis/src/com/googl
e/api/gwt/client/GoogleApiRequestTransport.java#43

Original comment by jasonhall@google.com on 17 Nov 2013 at 1:39

GoogleCodeExporter commented 9 years ago
Fixed in r2044

Original comment by jasonhall@google.com on 17 Nov 2013 at 6:20