Open milaq opened 5 years ago
First try on finding out what works and what doesn't: https://github.com/milaq/YCast/tree/redirect_shenanigans
https://github.com/milaq/YCast/commit/053bdfa5fabe80d10bdb690488c6dcd10fe306ac is working.
It seems like some Yamaha AVRs have a built-in whitelist and are discarding any non-matching redirects.
I reckon that the receiver just checks the Baseurl of the request (i.e. http://radioyamaha.vtuner.com).
Assumption confirmed.
Some Yamaha AVRs only accept redirects if the headers include http://radioyamaha.vtuner.com
.
Maybe the whitelist checks something like this:
If HOST
or REFERER
or ORIGIN
begins with http://radioyamaha.vtuner.com
then pass
We should implement vendor specific url overrides to mitigate the issue some users are having with some AVRs which put the wrong information into the host header.
Some AVR models don't follow 302 redirects for some reason.