如何解决datastudio.google.com拒绝连接
我正在尝试将Google Data Studio报告嵌入我的网站。直到一分钟前它一直在工作,但现在我不断收到:“ datastudio.google.com拒绝连接。”
这是代码:
import React,{ Fragment,useContext } from 'react'
import { Context } from '../../../context/Context'
export function ScheduleAndReport() {
const { userObject } = useContext(Context)
const reportURL = userObject.reportURL
const scheduleURL = userObject.scheduleURL
return (
<Fragment>
{scheduleURL && (
<iframe
width="100%"
height="1200"
src={scheduleURL}
frameBorder="0"
allowFullScreen>
</iframe>
)}
{reportURL && (
<iframe
width="100%"
height="1200"
src={reportURL}
frameBorder="0"
allowFullScreen>
</iframe>
)}
</Fragment>
)
}
解决方法
看起来你不能在 IFRAME 中嵌入 datastudio .. 在 FF 上有同样的问题
为了保护您的安全,datastudio.google.com 将不允许 Firefox 在其他站点嵌入该页面的情况下显示该页面。要查看此页面,您需要在新窗口中打开它。
正确的做法如下:
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。