You are not logged in.

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

1

Friday, October 24th 2014, 12:20pm

Access to restricted URI denied

Hi, that's not a new issue but I would like to know if there is a workaround :
My krpano js and swf files are in a folder called krpano, all my tours are in another folder so I embed this way :

Source code

1
2
3
4
<script src="../krpano/swfkrpano.js"></script>
	<script>
		embedpano({swf:"../krpano/krpano.swf", xml:"mypano.xml", target:"pano", html5:"prefer", passQueryParameters:true});
	</script>

If I want to display my pano local it works perfect in flash but in html5 I have an error message (Access to restricted URI denied)
Online it works perfect flash and html5.

How can I make it work local in html5 ?

Thanx !

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Friday, October 24th 2014, 12:30pm

Did you try looking local with chrome?

Tuur *thumbsup*

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

3

Friday, October 24th 2014, 12:34pm

Yes Tuur, but chrome always loads flash version when opening local files even if html5 is set to prefer...

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

4

Friday, October 24th 2014, 12:52pm

Hum, it's not an embed problem...
I include the skin wich is in another folder like this :

Source code

1
<include url="../krpano/skin/myskin.xml" devices="desktop"/>

Is I remove this line then it works local in html5
I tried too with <include url="%SWFPATH%/skin/myskin.xml" devices="desktop"/> but it behaves the same...

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Friday, October 24th 2014, 1:20pm

Quoted

Yes Tuur, but chrome always loads flash version when opening local files even if html5 is set to prefer...


Ah! Didn't realized that.
It is quite confusing for sometimes... I should say sometimes not... Haha

Tuur *thumbsup*

6

Monday, October 27th 2014, 11:21am

Hi,

this is a browser-side access restriction (typical from Firefox) when trying to access local files from an 'upper' folder.


Yes Tuur, but chrome always loads flash version when opening local files even if html5 is set to prefer...
This is a default behavior of the embedding script - Chrome doesn't allow to load local xml files in HTML5 - so instead of showing a loading error, the embedding script chooses to load Flash instead of HTML5. But by using html5=only the HTML5 viewer will be loaded also in Chrome locally.

Best regards,
Klaus