Giter Site home page Giter Site logo

Unsafe attempt to initiate navigation for frame with origin 'https://docs.google.com' from frame with URL 'https://localhost:3000/taxonomytool-impl.html'. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set. about react-google-apps-script HOT 6 CLOSED

enuchi avatar enuchi commented on July 29, 2024
Unsafe attempt to initiate navigation for frame with origin 'https://docs.google.com' from frame with URL 'https://localhost:3000/taxonomytool-impl.html'. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.

from react-google-apps-script.

Comments (6)

WillLiuMH avatar WillLiuMH commented on July 29, 2024 1

Ahhh yeah I think I'm finding that too. Honestly though new tab is not a bad alternative. Thanks for your help here @enuchi and appreciate all the work you've put into this library!

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

@WillLiuMH sounds like it's happening when you are working in local development. Does it happen when you deploy the app (npm run deploy)?

from react-google-apps-script.

WillLiuMH avatar WillLiuMH commented on July 29, 2024

Hey @enuchi, yeah I'm getting the same issue in both the development and deployed versions. I just need get that attribute set on the iframe somehow and I think it should be good, but just scratching my head at how to do that...

Also just wanted to say thanks for writing this library. It's been kick ass so far!

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

Glad it's been helpful to you!

If I understand what's happening correctly then you are not going to be able to modify the top level iframe because Google does not expose that capability. I don't believe you're able to navigate to another page within the iframe -- can you take a look here? https://developers.google.com/apps-script/guides/html/restrictions#restrictions_in_iframe_mode

What happens if you add a link with the target="_top" attribute?

<a href="http://google.com" target="_top">Click Me!</a>

from react-google-apps-script.

WillLiuMH avatar WillLiuMH commented on July 29, 2024

Hmmm I tried that, no change. Looking at the article you linked, the _top attribute is actually supposed to go into the tag in the html sheet, which you already had there. I feel like there's got to be a way to add a link to a google sheets web app!!!

from react-google-apps-script.

enuchi avatar enuchi commented on July 29, 2024

I don't think it's going to work. I'm guessing Google really doesn't want you to navigate to another page within its UI, for security reasons. Your best bet is to launch your page in a new tab with target _blank: <a href="http://www.yourpage.com" target="_blank">

from react-google-apps-script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.