We've recently implemented Google's Customer Review module into our success page.
However, the console bugs. It keeps telling me:
jquery.js:2998 Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://my-dev-domain.tld" from accessing a cross-origin frame.
I understand that this is a problem from
CORS, and therefore I added the following to my
Header set Access-Control-Allow-Origin "*"
However, this also didn't worked. The error is still showing.
Deactivating FPC hasn't changed something.
I've learned that there's a fix for
page-cache.js in future versions of Magento (> 2.1.5, see https://github.com/magento/magento2/pull/8005).
However, copying the new PR to the staging system doesn't resolve the error, it still bugs.
How could I now solve my problem?
Btw, this is the code I inject:
- we are on Magento 2.0.4
- when trying to use my solution on a Magento 2.1.5 system nothing gets shown, nor is there an error in the console