mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 498|reply: 1
打印 prevThread nextThread

视频下载视频播放跨域

[copyURL]

6

主题

10

帖子

38

积分

newBie

Rank: 1

积分
38
jumpTo
owner
poston 2024-4-19 13:10 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
自己业务系统前段直接请求视频平台服务端,提示跨域。。视频服务端是不是禁止跨域访问了?: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
reply

使用道具 report

6

主题

438

帖子

1722

积分

vipMem

Rank: 6Rank: 6

积分
1722
sofa
poston 2024-4-19 14:25 | authorOnly
是的 默认不支持跨域。
您可以在运管中心,配置ngxin让我们的服务器支持跨域;
也可以通过反向代理我们的服务,避免跨域;
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-21 22:10 , Processed in 0.061519 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList