crossdomain.xml

15 views
Skip to first unread message

Jacob Feisley

unread,
Apr 11, 2008, 10:33:50 AM4/11/08
to Google App Engine
We are developing Flash applications that connect to a service on App
Engine, however, when we upload the crossdomain.xml file to the site
it is not always rendered properly. The issue appears to stem from
using our own domain through Google Apps.

This URI will get the proper cross domain file that was uploaded:
http://pyamf.appspot.com/crossdomain.xml

However, this URI retrieves a crossdomain file that is incorrect. My
theory is that the redirect from Google Apps is somehow mucking with
things:
http://ae.pyamf.org/crossdomain.xml

Thanks for any insight you can provide.


Jacob Feisley

Newman Hunter

unread,
Apr 11, 2008, 12:03:46 PM4/11/08
to Google App Engine
I'd guess you're right.

Taking a quick look at the headers between the two links (a la
Firefox):

http://pyamf.appspot.com/crossdomain.xml
GET /crossdomain.xml HTTP/1.1
Host: pyamf.appspot.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:
1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Accept: HTTP Accept=text/xml,application/xml,application/xhtml
+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://groups.google.com/group/google-appengine/browse_thread/thread/6423299aa163134d

HTTP/1.x 200 OK
Expires: Fri, 11 Apr 2008 15:56:50 GMT
Cache-Control: public, max-age=5
Content-Type: text/xml
Server: Google Frontend
Content-Length: 218
Date: Fri, 11 Apr 2008 15:56:45 GMT

---

http://ae.pyamf.org/crossdomain.xml

GET /crossdomain.xml HTTP/1.1
Host: ae.pyamf.org
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:
1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Accept: HTTP Accept=text/xml,application/xml,application/xhtml
+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://groups.google.com/group/google-appengine/browse_thread/thread/6423299aa163134d

HTTP/1.x 200 OK
Content-Type: text/x-cross-domain-policy
Expires: Fri, 11 Apr 2008 15:57:52 GMT
Cache-Control: private, max-age=0
Transfer-Encoding: chunked
Content-Encoding: gzip
Date: Fri, 11 Apr 2008 15:57:52 GMT
Server: GFE/1.3
X-Google-Netmon-Label: /bns/bx/babysitter/dasher_gfe/gfe/0/4

Through the redirect, the front end is serving something very
different. Different Content-Type, gziped, etc.

I don't have an AppEnging account, or I'd test a bit more. But that's
likely the problem right there.

flashpad

unread,
Apr 11, 2008, 12:37:42 PM4/11/08
to Google App Engine
hey jacob

pyamf? how exciting! have you been able to get it to work over http:
80?

On Apr 11, 9:03 am, Newman Hunter <concept...@gmail.com> wrote:
> I'd guess you're right.
>
> Taking a quick look at the headers between the two links (a la
> Firefox):
>
> http://pyamf.appspot.com/crossdomain.xml
> GET /crossdomain.xml HTTP/1.1
> Host: pyamf.appspot.com
> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:
> 1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
> Accept: HTTP Accept=text/xml,application/xml,application/xhtml
> +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> HTTP/1.x 200 OK
> Expires: Fri, 11 Apr 2008 15:56:50 GMT
> Cache-Control: public, max-age=5
> Content-Type: text/xml
> Server: Google Frontend
> Content-Length: 218
> Date: Fri, 11 Apr 2008 15:56:45 GMT
>
> ---
>
> http://ae.pyamf.org/crossdomain.xml
>
> GET /crossdomain.xml HTTP/1.1
> Host: ae.pyamf.org
> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:
> 1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
> Accept: HTTP Accept=text/xml,application/xml,application/xhtml
> +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer:http://groups.google.com/group/google-appengine/browse_thread/thread/...

Jacob Feisley

unread,
Apr 11, 2008, 2:49:22 PM4/11/08
to Google App Engine
Yea, we have it working! We have a basic echo test working at the
moment and I am currently adapting some of our other examples to the
App Engine api.

You can see our ongoing work here: http://pyamf.org/wiki/GoogleAppEngine
And our sample site is http://ae.pyamf.org

-Jacob

Aral Balkan

unread,
Apr 14, 2008, 9:10:10 AM4/14/08
to Google App Engine
Hey Jacob,

Any updates on the crossdomain.xml issue? Did you file a bug?

Thanks,
Aral

Brett

unread,
Apr 22, 2008, 2:10:48 PM4/22/08
to Google App Engine

Meaglith Ma

unread,
Jun 10, 2008, 12:41:59 AM6/10/08
to Google App Engine
Using a crossdomain.py export the content of crossdomain.xml, and add
the url in the app.yaml:
- url: /crossdomain.xml
script: crossdomain.py

On 4月23日, 上午2时10分, Brett <brettalici...@gmail.com> wrote:
> I've opened this ashttp://code.google.com/p/googleappengine/issues/detail?id=266
>
> On Apr 14, 6:10 am, Aral Balkan <aralbal...@gmail.com> wrote:
>
> > Hey Jacob,
>
> > Any updates on thecrossdomain.xmlissue? Did you file a bug?
>
> > Thanks,
> > Aral
Reply all
Reply to author
Forward
0 new messages