-1

I would like to load Datastudio or Analytics reports in my app with javascript?

<script>
    $(document).ready(function(){
        $('#mydiv').load('http://datastudio.com');
    });
</script>
mdiiorio
  • 126
  • 2
  • 13

1 Answers1

1

You cannot load the plain content from ANYsite. It is obvious that this will produce a security whole..

To be able to load some content from anysite.com to yoursite.com

anysite.com has to provide a CORS header which will allow you to share content between anysite.com and yoursite.com

webdeb
  • 12,993
  • 5
  • 28
  • 44