我有一个Shopify应用,该应用由一个node.js后端和一个react + redux前端组成,该前端托管在与后端不同的域中:
frontend: ui.mydomain.com
backend: service.mydomain.com
加载应用程序时,出现错误:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://service.mydomain.com') does not match the recipient window's origin ('https://ui.mydomain.com').
我不确定这是哪里来的,但似乎在UI代码中。
一切正常,但是由于错误,我无法批准我的应用。
我对如何调试它非常迷失,因为该错误没有给出我的文件或行号或任何堆栈跟踪。