HTML5 video/audio player on mobile Safari (iOS 7 &

2019-01-23 04:57发布

I have noticed that the HTML5 video/audio player (AppleCoreMedia) on mobile Safari on iOS 7 excludes all cookies, even first-party cookies. Not even sessions cookies are included in the HTTP-header. This makes it impossible to relay on cookie authorization when playing a video clip in mobile Safari on iOS 7.

All cookies are included correctly running iOS 6 but on iOS 7 no cookies are included in the HTTP-header of AppleCoreMedia.

Can some one else confirm this issue on iOS 7?

Steps to reproduce is:

  1. Create a cookie on a web page.
  2. Play a HTML5 video clip on the same web page using mobile Safari in iOS 7.
  3. Check the server logs for AppleCoreMedia and look for the cookie.

Update 2016-09-20: The video player in iOS 10 (AppleCoreMedia) is not able to read session cookies. Only cookies set with an expire date is readable by the video player.

8条回答
相关推荐>>
2楼-- · 2019-01-23 05:07

I'm hearing on the grapevine that iOS 10.2 will contain a fix for this problem

查看更多
叼着烟拽天下
3楼-- · 2019-01-23 05:09

Using iOS 7.0.2, I am seeing cookies included in the request. Here's my user agent header:

User-Agent: AppleCoreMedia/1.0.0.11A501 (iPad; U; CPU OS 7_0_2 like Mac OS X; en_us)
查看更多
爷、活的狠高调
4楼-- · 2019-01-23 05:12

For iOS10, if you respond with a 403 forbidden, AppleCoreMedia will somehow try again but this time with the missing cookies. If you have code that redirects to login page when the session cookie is missing, video will not work on iOS 10.

查看更多
唯我独甜
5楼-- · 2019-01-23 05:15

I had similar problems with cookies on iOS 7.0.3, but they are fixed now with iOS 7.0.4. Let's hope it stays this way.

查看更多
一纸荒年 Trace。
6楼-- · 2019-01-23 05:21

The bug continues to exists in iOS 7.1

Obviously Apple is ignoring this bug and I can not understand why since it affects so many users.

I have been running some tests on a iOS 7.1 device that had this problem and it is pretty clear that the bug is related to the private browsing feature. Turning private browsing on and then off fixes the problem on the device.

查看更多
我欲成王,谁敢阻挡
7楼-- · 2019-01-23 05:23

I have developed a simple test where you can check if your iOS device have this bug.

Read more about the test here!

查看更多
登录 后发表回答