GithubHelp home page GithubHelp logo

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.product.cafe') does not match the recipient window's origin about rendertron HOT 5 CLOSED

googlechrome avatar googlechrome commented on May 22, 2024
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.product.cafe') does not match the recipient window's origin

from rendertron.

Comments (5)

samuelli avatar samuelli commented on May 22, 2024

The provided render-tron sample endpoint is designed to allow you to test out how your page would look. In this case, we are rendering content that would otherwise a) be served via your domain and b) would only be served to bots that explicitly don't render.

In this example, as we're displaying the contents directly from the render-tron endpoint, you're seeing errors regarding cross origin security policies. See CORS page for more info on that.

Are you using an iframe somewhere?

from rendertron.

AndreasGalster avatar AndreasGalster commented on May 22, 2024

Does this mean our own rendertron service should be on the same domain (subdomain)? Yes, there's definitely iframes there, at least Intercom and Facebook. I think it's coming from FB.

from rendertron.

samuelli avatar samuelli commented on May 22, 2024

Have you seen the Youtube video of me explaining this?

The approach is to proxy some of the requests through to Rendertron, but it will still be served directly from your server. This is essential to ensuring bots and crawlers 'see your page'. So you don't have to use your own Rendertron, or serve it on your own domain, but you'd need to add the middleware to proxy the request via Rendertron from within your server.

Does that make sense?

from rendertron.

AndreasGalster avatar AndreasGalster commented on May 22, 2024

Yes that makes sense, I was just not sure. I've been testing the middleware via your appspot deployment and didn't see the results I expected, so I was concerned.

I guess I just need to stop using the appspot version and wait for a day to get the cached results via the middleware :).

from rendertron.

samuelli avatar samuelli commented on May 22, 2024

Closing this issue. Feel free to reopen/open a new issue if you encounter more problems.

from rendertron.

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.