CDN打不开,导致H5打不开

一直没问题,突然https://www.jsdelivr.com/的vue-video-player插件打不开,报错403,导致整个H5打不开,出现白屏。
错误信息如下:
403
Forbidden
Error Times: Thu, 30 Jul 2020 07:18:09 GMT
IP: 2409:8954:3090:37ff:1d4a:c622:f526:a325Node information: shanydong26:22
URL: https://cdn.jsdelivr.net/npm/vue-video-player@5.0.2/dist/vue-video-player.js
Check: Details

ERROR
The Requested URL could not be retrieved

While trying to retrieve the URL:
https://cdn.jsdelivr.net/npm/vue-video-player@5.0.0/dist/vue-video-player.js
The following error was encountered:
Invalid Request
The access control configuration prevents your request at this time.

Please contact your service provider if you feel this is incorrect.
return

解决方法:
1、打开index.html文件,注释掉vue-video-player插件的CDN链接。
2、打开build/webpack.base.conf.js文件,注释掉’vue-video-player’: ‘VueVideoPlayer’,
3、重新打包,部署到服务器。问题解决。
没有备用CDN,就是个坑。因为其它免费CDN服务器,没有vue-video-player插件,所以,我没有做备用处理。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值