You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, September 2nd 2010, 11:55am

Amazon S3 temporary url - ERROR: Security Error

Hi,

I'm getting this error for equirects hosted by amazon S3 that use their temporary url feature:

INFO: krpano 1.0.8 beta 9 (build 2010-02-21)
INFO: Flashplayer MAC 10,1,82,76 PlugIn
INFO: registered to: xyz
ERROR: Security Error -
"http://xyz.s3.amazonaws.com/IMG_8812_panorama_1283356045_stitched.jpg?AWSAccessKeyId=05D4DS26STJWM33795G3&Expires=1283419230&Signature=toOK%2FV%2F6l1%2B5dGKKsH0TPbC2k6U%3D"

When I try to access this url with my browser or wget it works fine. Is it possible that krpano strips some parameters from that url?

Thanks

2

Thursday, September 2nd 2010, 4:35pm

Krpano player and images have to be from the same domain, otherwise krpano player which is a flash file cannot access images. This is a restriction set by the flash, not specific to krpano.

3

Thursday, September 2nd 2010, 4:39pm

Hi!

I don't know whether krpano uses flash's built-in http or a raw socket. First try the allowdomain.domain in http://krpano.com/docu/xml/#security to give permission to xyz.s3.amazonaws.com .

If it doesn't work, raw sockets in flash will only connect to a domain different from that in which the swf is hosted if the target domain is able to provide a cross-domain policy xml file which explicitly grants the source domain permission to connect. Look into the actionscript 3 documentation to find out how to create this file, then you must be able to make it acessible from http://xyz.s3.amazonaws.com/crossdomain.xml or set a different path using the crossdomainxml.url in http://krpano.com/docu/xml/#security (must be in the same domain).

4

Thursday, September 2nd 2010, 5:19pm

Thanks, but it works OK for other equirects hosted on S3 (non temporary url), so I don't think it is cross-domain policy related problem.

5

Thursday, September 2nd 2010, 5:29pm

How do you pass that URL to krpano? Is it in the xml?

6

Thursday, September 2nd 2010, 6:08pm

Yes, it is in xml.

7

Thursday, September 2nd 2010, 7:12pm

You can't directly use & as a URL separator in xml, since it's a reserved character. Whether you can work around that limitation depends on the remote server, I think. Try replacing it with %26 .

8

Friday, September 3rd 2010, 10:33am

Hi,

you would need to have a crossdomain.xml on the amazon server,
for easiest case just put it in the servers root folder,

best regards,
Klaus

9

Friday, September 3rd 2010, 10:51am

The problem was that I used different subdomains for protected and unprotected equirects and I didn't notice the difference.

http://xyz.s3.amazonaws.com vs. http://s3.amazonaws.com/xyz

I have to put crossdomain.xml to my bucket and it works.

Thanks!

This post has been edited 2 times, last edit by "vlado" (Sep 3rd 2010, 11:35am)