无法使用默认 phone 或 Skype 开始通话
Unable to start call using default phone or skype
我无法在我的 React 应用程序中使用默认 phone 或 Skype 开始通话。以下代码在本地有效,但在 production/live.
中无效
function onClick(event: any) {
window.location.assign("tel:" + props.value);
}
这是在本地显示的图片:
我在生产中遇到以下错误:
Refused to frame '' because it violates the following Content Security
Policy directive: "frame-src blob: data: https: mailto: ms-appx-web:
ms-excel: ms-powerpoint: ms-visio: ms-word: onenote: pdf:
local.teams.office.com:* localhost:* msteams: sip: sips:
ms-whiteboard-preview:".
请帮我解决这个问题。
我使用以下代码找到了解决方案:
function onClick(event: any) {
window.open("tel:" + props.value, '_system')
}
我无法在我的 React 应用程序中使用默认 phone 或 Skype 开始通话。以下代码在本地有效,但在 production/live.
中无效function onClick(event: any) {
window.location.assign("tel:" + props.value);
}
这是在本地显示的图片:
我在生产中遇到以下错误:
Refused to frame '' because it violates the following Content Security Policy directive: "frame-src blob: data: https: mailto: ms-appx-web: ms-excel: ms-powerpoint: ms-visio: ms-word: onenote: pdf: local.teams.office.com:* localhost:* msteams: sip: sips: ms-whiteboard-preview:".
请帮我解决这个问题。
我使用以下代码找到了解决方案:
function onClick(event: any) {
window.open("tel:" + props.value, '_system')
}