在与我的视频播放器不同的域中托管的视频出现403错误。当我转到Chrome中的视频链接时,视频文件播放没有错误,但是当我将该链接添加为页面中视频元素的来源时,出现403 Forbidden错误。
我究竟做错了什么?
提前致谢。
最佳答案
就我而言,建议将以下内容添加到.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>
关于javascript - 视频的403禁止错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27715248/