Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html datastudio.google.com拒绝连接_Html_Reactjs_Google Data Studio - Fatal编程技术网

Html datastudio.google.com拒绝连接

Html datastudio.google.com拒绝连接,html,reactjs,google-data-studio,Html,Reactjs,Google Data Studio,我正在尝试将Google Data Studio报告嵌入到我的网站中。它一直工作到一分钟前,但现在我不断得到:“datastudio.google.com拒绝连接。” 代码如下: import React, { Fragment, useContext } from 'react' import { Context } from '../../../context/Context' export function ScheduleAndReport() { const { userObje

我正在尝试将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>
  )
}

import React,{Fragment,useContext}来自“React”
从“../../../Context/Context”导入{Context}
导出函数ScheduleAndReport(){
const{userObject}=useContext(上下文)
const reportURL=userObject.reportURL
const scheduleURL=userObject.scheduleURL
返回(
{scheduleURL&&(
)}
{reportURL&&(
)}
)
}

看起来您无法将datastudio嵌入IFRAME中。。在FF上也有同样的问题

为了保护您的安全,datastudio.google.com将不允许Firefox显示其他网站嵌入的页面。要查看此页面,您需要在新窗口中打开它

以下是如何以正确的方式执行此操作:


看起来您无法将datastudio嵌入IFRAME中。。在FF上也有同样的问题

为了保护您的安全,datastudio.google.com将不允许Firefox显示其他网站嵌入的页面。要查看此页面,您需要在新窗口中打开它

以下是如何以正确的方式执行此操作: