You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.product.cafe') does not match the recipient window's origin
#86
Closed
AndreasGalster opened this issue
Aug 30, 2017
· 5 comments
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.product.cafe') does not match the recipient window's origin ('http://render-tron.appspot.com').
ha @ 0sTQzbapM8j.js?version=42:53
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.
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.
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.
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 :).
When trying out https://www.product.cafe on render-tron.appspot.com I get the following error:
You can see the error here: http://render-tron.appspot.com/render/https://www.product.cafe?wc-inject-shadydom=true
The text was updated successfully, but these errors were encountered: