mobile CCTV,mobile surveillance,police body worn cameras

标题: 视频下载视频播放跨域 [打印本页]

author: jnwang    time: 2024-4-19 13:10
标题: 视频下载视频播放跨域
自己业务系统前段直接请求视频平台服务端,提示跨域。。视频服务端是不是禁止跨域访问了?:3000/#/report/VideoQueryList:1 Access to XMLHttpRequest at 'http://192.168.2.144:9780/bvnru/v1/download/sipc2c4e64e640a60fca560f4d31db51be8' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
VideoQueryList.vue:440     GET http://192.168.2.144:9780/bvnru/ ... 0fca560f4d31db51be8 net::ERR_FAILED

author: IBeli    time: 2024-4-19 14:25
是的 默认不支持跨域。
您可以在运管中心,配置ngxin让我们的服务器支持跨域;
也可以通过反向代理我们的服务,避免跨域;




欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/) Powered by Discuz! X3.2