You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

💡 Did you know?

⏺ If you can't accept iCloud Terms and Conditions... Learn more >

⏺ If you don't see your iCloud notes in the Notes app... Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari (iOS 10) cannot play video which needs session cookie based authentication

With latest iOS release (10.0.2), on Safari, the html5 video player is not sending auth session cookies to the server, so video player throws error because missing authentication.


The video player was working fine on previous version, it was sending ok the session cookies, but tested on mac simulator which runs iOS 10.0, and it sends the cookies and video plays correctly

iPhone SE, iOS 10.0.2

Posted on Oct 11, 2016 1:08 PM

Reply
9 replies

Oct 11, 2016 7:36 PM in response to asotog88

Attaching har (http request debug files) files and screencap where you can clearly see the differences between iOS 10.0 (with simulator) and 10.0.2 (iPhone SE real device)

User uploaded file


HAR file with video request working, you will see session cookie is sent

https://dl.dropboxusercontent.com/u/31991620/shared/iOS(10.0)


HAR file with video request not working as expected, session cookie not being sent

https://dl.dropboxusercontent.com/u/31991620/shared/iOS(10.0.2)


Also you can see the differences in the user agents for the 2 different http video requests made by the video player

Nov 7, 2016 7:55 PM in response to asotog88

On the server side, if the request was not authenticated (no cookies), a plain 403 request is "echoed" to the customer.


Right after that, we see the new request come in with the session information (cookies) and then the video is streammed out. However, the video is still not reproduced.


So we resolved the request part, but the video is not playing yet, although the content is served.

Safari (iOS 10) cannot play video which needs session cookie based authentication

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.