![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
阳光青竹
这个作者很懒,什么都没留下…
展开
-
XMLHttpRequest请求跨域问题解决方案
问题描述:jsXMLHttpRequest请求,前端报出跨域问题No 'Access-Control-Allow-Origin' header is present on the requested resource.解决方案:java后端添加response.setHeader("Access-Control-Allow-Origin", "*");...原创 2019-10-18 23:50:42 · 2431 阅读 · 0 评论 -
新版Chrome访问http页面无法打开麦克风、摄像头
原因分析:1、http协议的网站的安全原因,不能访问本地的麦克风2、允许打开麦克风的请求有http://localhost/以及https请求。解决方法:方法一:访问摄像头,麦克风等必须使用https,将网站部署成https请求方法二:官方解释:You can run chrome with the --unsafely-treat-insecure-orig...原创 2019-09-28 01:30:39 · 17852 阅读 · 5 评论