sgrebnov / cordova-plugin-background-download

Apache License 2.0
73 stars 77 forks source link

Issues with downloads from Akamai servers #66

Open curthusting opened 6 years ago

curthusting commented 6 years ago

I am running into some issues when I attempt to download videos from Akamai servers, and I was hoping to get some insight;

For example, for the following two urls, the first video downloads as expected, but the second video fails.

  1. Served via Varnish: https://cdn.jwplayer.com/videos/x3tmUfxs.mp4 -> Works
  2. Served via AmazonS3: https://cdn.jwplayer.com/videos/TYW5TJBi.mp4 -> Fails Downloads what appears to be a webpage, but the contents are;
    <HTML><HEAD>
    <TITLE>Access Denied</TITLE>
    </HEAD><BODY>
    <H1>Access Denied</H1>
    </BODY>
    </HTML>

    I spoke with the engineers that manage the server setup and hosting for our content, here is what they had to say;

Their request to videos-a is being made with a cookie that wasn't set by anything and is an invalid signing cookie, so Akamai is rejecting their request. hdntl is an Akamai cookie. I have no idea what is setting it, nothing in that chain of requests/responses sets it so it must be something they are doing in their application.