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.

olihar

Trainee

  • "olihar" started this thread

Posts: 132

Location: Iceland

Occupation: Interaction Designer

  • Send private message

1

Wednesday, August 14th 2013, 12:19pm

Loading tiles from another server HTML5

Loading tiles from another server then the tour is on seems to be very tricky with HTML5 viewer, works fine in flash.

For example I would like to use Amazon S3/CloudFront for my tiles as I have always done, now updating to HTML5 tiles I am not able to get anything to work.

I get, ERROR: loading (url to tiles)

I have tried all kinds of things regarding CORS but to no avail.

Any recommendations to Amazon S3/CloudFront settings to get this to work?

P.s. It works fine in Internet Explorer, but any other browser desktop or mobile does not work.

olihar

Trainee

  • "olihar" started this thread

Posts: 132

Location: Iceland

Occupation: Interaction Designer

  • Send private message

2

Wednesday, August 14th 2013, 3:24pm

I seem to have managed to get Amazon S3 and CloudFront working.

First set your bucket to Enable website hosting under Static Website Hosting

Then add this to your Edit CORS Configuration under Permissions




Quoted

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>Authorization</AllowedHeader>

<ExposeHeader>x-amz-server-side-encryption</ExposeHeader>
<ExposeHeader>x-amz-request-id</ExposeHeader>
<ExposeHeader>x-amz-id-2</ExposeHeader></CORSRule>
</CORSConfiguration>

As well for Flash support you might want to add crossdomain.xml file in the root of the folder as well with this in it.



Quoted


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*"/>
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>


I hope this helps for other people wanting to use Amazon S3

This post has been edited 1 times, last edit by "olihar" (Aug 14th 2013, 6:22pm)


olihar

Trainee

  • "olihar" started this thread

Posts: 132

Location: Iceland

Occupation: Interaction Designer

  • Send private message

3

Wednesday, August 14th 2013, 6:23pm

This is sometimes not working, I dont really get it, same url might not work on 1 computer and on another it works fine. Cleared cache and flushed DNS...

4

Tuesday, April 8th 2014, 10:14am

same problem

I have same problem. Could you achieve?

5

Tuesday, April 8th 2014, 11:23am

Thanks a lot

I have same problem. Could you achieve?

I have same problem. Could you achieve?

Thanks bro, it works fine.

6

Tuesday, April 21st 2015, 2:27pm

Same here and frustrated.

Also using the latest version of KRpano which is having better HTML support.