RTm 登陆失败 同源跨域是啥问题

登陆报错
有个同源跨域的问题 不知道什么情况会有这种问题
已拦截跨源请求:同源策略禁止读取位于 https://webcollector-2.agoraio.cn:6443/events/proto-raw?sentTs=1590660787&id=191 的远程资源。(原因:来自 CORS 预检通道的 CORS 头 ‘Access-Control-Allow-Headers’ 的令牌 ‘content-type’ 无效)。
Unhandled promise rejection
TypeError: NetworkError when attempting to fetch resource.
chunk-vendors.7c6585e4.js:20:59223
Unhandled promise rejection
TypeError: NetworkError when attempting to fetch resource.

请问是否可以提供完整的浏览器日志,我们来分析一下。

rtm登陆报错.txt.zip (20.7 KB)

s@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:58748
notify/<@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:58912
n@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:56710
app.191e74d5.js:1:6558
Ins#6 RTM:INFO The Agora RTM Web SDK version is 1.2.1. +0ms
chunk-vendors.7c6585e4.js:20:500960
Ins#6 RTM:INFO The process ID is b9e4802b-ec81-4c19-9329-982a1ed6778e. +2ms
chunk-vendors.7c6585e4.js:20:500960
连接状态更改:CONNECTING 原因:LOGIN
app.191e74d5.js:1:6258
Unhandled promise rejection
TypeError: NetworkError when attempting to fetch resource.
chunk-vendors.7c6585e4.js:20:59223
Unhandled promise rejection
TypeError: NetworkError when attempting to fetch resource.
chunk-vendors.7c6585e4.js:20:59223
Unhandled promise rejection
TypeError: NetworkError when attempting to fetch resource.
chunk-vendors.7c6585e4.js:20:59223
Unhandled promise rejection
TypeError: NetworkError when attempting to fetch resource.
chunk-vendors.7c6585e4.js:20:59223
DOMException { }
chunk-vendors.7c6585e4.js:20:472410
Ins#6 RTM:ERROR t/n.fetchAp/<@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:517467
6f91/</</SafeSubscriber</t.prototype.__tryOrUnsub@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:187623
6f91/</</SafeSubscriber</t.prototype.next@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:186751
6f91/</</Subscriber</t.prototype._next@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:185778
6f91/</</Subscriber</t.prototype.next@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:185461
6f91/</</ThrowIfEmptySubscriber</t.prototype._next@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:208825
6f91/</</Subscriber</t.prototype.next@https://ddsw.lnch-tech.com:17991/ddswatm/assets/js/chunk-vendors.7c6585e4.js:20:185461

使用官网提供的dome,在那台机器上也是相同的跨域问题


看起来似乎是 v1.2.1 的一个已知问题,你试试看跑下官网最新版 v1.2.2 的 demo 呢?
https://download.agora.io/rtmsdk/release/Agora_RTM_SDK_for_Web_v1.2.2.zip?_ga=2.215088599.1933101240.1590372587-1583961819.1580439641