React + Wix iFrame communication not working

I’m trying to embed a React Application running in a different domain to my wix application using iFrame. The reason is that I need to communicate this two applications and the solution that we found was to use iFrame for that.

However, wix is not triggering onMessage when a postMessage is called in the React application.

It only works when I use React in developer mode exposing the application using ngrok, but the deployed application does not works.

Is there a way to solve this? Please help.