1

We have a panorama made with krpano that we would like to show in our SharePoint site. All the files and images have been uploaded, but when trying to run the panorama we get loading errors for the image files it is trying to load.

Upon checking the actual requests, the images are coming back with a status code of 302 (temporary redirect) and with an url of http://[mysite]/_layouts/15/Authenticate.aspx?Source=%2FSiteAssets%2FPanoramor%2FTAKTISKT%5FPANOdata%2Fgraphics%2Fclassiccontrolbar%2Fbtn%5Fmove%5Fdown%2Epng instead of just the url to the file which the panorama script is expecting.

Is there a way to set up the storage of the images on the SharePoint server so that it does not need to do the redirect to get the files? I've tried putting them in an image library and under Site Assets but it does not make any difference.

The server is SharePoint 2013, Foundation.

closed as off-topic by Eric Alexander Nov 10 '15 at 15:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Your server most likely runs on HTTPS and it looks like you are trying to retrieve an image with HTTP. Try the original URL in the browser – Danny '365CSI' Engelman Nov 10 '15 at 14:15
  • @DannyEngelman The urls are relative when they're read, I've also tried adding the image manually using both html tags and javascript which works without a problem. But I'm guessing those two approaches can handle the redirect which the panorama script cannot. – Lizzan Nov 10 '15 at 14:17
  • @DannyEngelman The original url works fine in the browser. – Lizzan Nov 10 '15 at 14:18
  • @DannyEngelman I also don't see any use of HTTPS in any of the urls on the site. – Lizzan Nov 10 '15 at 14:25
  • Is this KRPano viewer doing something dirty and sending the request to their server, so that the image is loaded with a call from their server? (thus explaining the Authentication redirect) Check the network tab in F12 if any calls to outside locations are made when the page loads. – Danny '365CSI' Engelman Nov 10 '15 at 14:46