the issue:
sometimes referer header might not include "http" or "https" (i.e. kaltura.com). in this case, if kaltura.com is an allowed domain in an ACP, it will not be recognized by the player, since the player is looking for scheme part (http/s) and host part. we are using a php function called parse_url to break the referer header into url parts. in cases where the referer does not contain a scheme part (http/s), there is also no host, but path exists instead.
solution:
when building the referer, adding another check for path attribute.
@OrenMe
could you please look at this PR and put your concernes if any regarding the fix
as usually valid referrer should come with schema and here we try to change the behaviour
the issue: sometimes referer header might not include "http" or "https" (i.e.
kaltura.com
). in this case, ifkaltura.com
is an allowed domain in an ACP, it will not be recognized by the player, since the player is looking forscheme
part (http/s) andhost
part. we are using a php function calledparse_url
to break the referer header into url parts. in cases where the referer does not contain a scheme part (http/s), there is also no host, butpath
exists instead.solution: when building the referer, adding another check for
path
attribute.Solves FEC-12600