Access Control Headers?

  • 1
  • Question
  • Updated 3 years ago
  • Answered
We are seeing this in the Preview Javascript console recently...

XMLHttpRequest cannot load 'http://our/image/url.com'. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s3.amazonaws.com' is therefore not allowed access.

It's says it can't access certain images, but then it loads them anyway. I am trying to research the errors and track down what is coming from where, but I don't really know a lot about CORS and things like that. I know that our servers don't provide the Access Control thing it's looking for, but we should be able to figure out how include it if we need to.

Any ideas on where to start researching this?
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Hi Stephen,

Could you share the link to preview the presentation that this is happening in?
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
This happened to me in android as well. I got that message on some images. Theses are stored on rise. I was using the image folder widget.
(Edited)
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Good Morning!

Here is the presentation preview with examples of the errors...

http://preview.risevision.com/Viewer.html?showUI=false&type=presentation&id=24fa1091-e316-4b...
Photo of Thierry Masson

Thierry Masson, Champion

  • 2,356 Points 2k badge 2x thumb
I've looked to the Chrome console of this preview.
I confirm this is something similar we get. I will be honest telling that I don't know if we got such XMLHttpRequest error before. It is because we started to get some strange behavior with a few pages (displayed totally blank) yesterday that I looked to the Chrome console and checks the same XMLHttpRequest error due to CORS.

See thread about same issue : Various issues with Rise today. Preview and ChromeOS showing up a white page
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
William/Scott, Is this something that has just been happening recently for you?
Photo of William Oneal

William Oneal, Champion

  • 13,770 Points 10k badge 2x thumb
I figured mine out. On android when i decode latin characters it doesn't decode correctly. It downloaded correctly with the latin character in the name but when i send back the location to the file it didn't decoded it with utf-8. So my location would be something like http://localhost:8085/Li%C3%A8vre.jpeg  where %C3%A8 is a latin character. So it would error out because the file and the sent location are not the same. 
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
I'm not getting any images showing up on the actual Chrome box that has the player on it. It was just throwing the CORS errors in the preview, but something changed. I still see the images in the preview, but the actual player is not showing them.

http://preview.risevision.com/Viewer.html?showUI=false&type=presentation&id=97443f02-7d61-43...
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Stephen, 

I just tried your Presentation in Native and Chrome App Player on Chrome OS, and it worked fine.

I noticed that the Chrome version on this Display was rather old. Any chance you could see how the Presentation functions on a newer version of Chrome?
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Hey Robb,

Thanks for looking into this. We froze the updating a month or so ago when updating to 46 was causing issues. I will try an update.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Also,

Alan was saying yesterday that the CORS issues wouldn't be present on an actual player, but Wendi found this url in the player...

http://rvashow.appspot.com/Viewer.html?type=display&player=true&id=...

If we point to this url in a browser, is this the same as what is happening in the player? If it is, we do also get the same CORS errors in the console.
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Stephen,
An update has been deployed to Image Widget this afternoon regarding the CORS messages that you report seeing on Developer Console. Let us know how you go with this update
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Sweet. It's running with no errors now (other than the cache error.) The images on our servers started showing up again sometime after I left the office on Friday, as well. Thanks!