403视频的禁止错误

时间:2014-12-31 02:02:56

标签: javascript html5 http video http-status-code-403

我在与我的视频播放器分开的域上托管的视频收到403错误。当我转到Chrome中的视频链接时,视频文件播放时没有错误,但是当我在页面中添加链接作为视频元素的来源时,我收到403 Forbidden错误。

我做错了什么?

提前致谢。

1 个答案:

答案 0 :(得分:0)

在我的情况下,建议我将以下内容添加到.htaccess文件中:

<IfModule mod_security2.c>
SecRuleRemoveById 950006
SecRuleRemoveById 950109
SecRuleRemoveById 950119
SecRuleRemoveById 950120
SecRuleRemoveById 950901
SecRuleRemoveById 950119
SecRuleRemoveById 958291
SecRuleRemoveById 960006
SecRuleRemoveById 960010
SecRuleRemoveById 960024
SecRuleRemoveById 960032
SecRuleRemoveById 960034
SecRuleRemoveById 960035
SecRuleRemoveById 960038
SecRuleRemoveById 973338
SecRuleRemoveById 981036
SecRuleRemoveById 981318
SecRuleRemoveById 981319
SecRuleRemoveById 981240
SecRuleRemoveById 981243
SecRuleRemoveById 981244
SecRuleRemoveById 981245
SecRuleRemoveById 981246
SecRuleRemoveById 981247
SecRuleRemoveById 981249
SecRuleRemoveById 981257
SecRuleRemoveById 981260
SecRuleRemoveById 981318
SecRuleRemoveById 981319
</IfModule>