移动Safari(iOS 7和iOS 10)上的HTML5视频/音频播放器不包括Cookie [英] HTML5 video/audio player on mobile Safari (iOS 7 & iOS 10) excludes cookies

查看:1072
本文介绍了移动Safari(iOS 7和iOS 10)上的HTML5视频/音频播放器不包括Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到iOS 7手机Safari上的HTML5视频/音频播放器(AppleCoreMedia)不包括所有Cookie,即使是第一方Cookie。 HTTP标头中甚至不包括会话Cookie。

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.

所有Cookie都包含在正确运行的iOS 6中,但在iOS 7上没有Cookie

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

还有人可以在iOS 7上确认这个问题吗?

Can some one else confirm this issue on iOS 7?

要重现的步骤是:


  1. 在网页上创建Cookie。

  2. 播放HTML5

  3. 检查AppleCoreMedia的服务器日志并查找该cookie。

更新时间2016-09-20:iOS 10(AppleCoreMedia)中的视频播放器无法读取会话Cookie。只有设置过期日期的Cookie才可以通过视频播放器读取。

推荐答案

403禁止,AppleCoreMedia将以某种方式再试一次,但这次与缺少的cookie。如果您缺少会话Cookie时重定向到登录页面的代码,则视频在iOS 10上无法使用。

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.

这篇关于移动Safari(iOS 7和iOS 10)上的HTML5视频/音频播放器不包括Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆