arabenseifer / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Chromecast unable to handle CORS headers correctly with http redirects #429

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load this Smoothstreaming VOD URL in chromecast:  
http://ys1-ssvod.ds.cdns.yousee.tv/Content/SS/VOD/TO_0026_R/Manifest.ism/Manifes
t

What is the expected output? What do you see instead?

Expected smooth playback, but instead it fails due to an issue with CORS 
headers.
The server respond with a '302' Moved Temporarily (containing CORS 
Access-Control-Allow-Origin: *). When Chromecast requests the new location URL, 
Origin is set to null, whereas it should have been (http://cloud.yousee.tv). I 
guess we are not the only one using redirects, so this must be a general issue 
unless we are doing something wrong.

Original issue reported on code.google.com by mor...@striboldt.com on 11 Nov 2014 at 8:53

GoogleCodeExporter commented 9 years ago
As per the the redirect steps found here:
http://www.w3.org/TR/cors/#redirect-steps
Please make sure your request URL origin is the same as the original URL 
origin, otherwise your Origin will be set to null, as you see in your issue.

Original comment by and...@google.com on 18 Nov 2014 at 5:28