I have ReactJs Component which includes an iframe. That iframe is used to do some job and after it finishes it has callback to Success or Error pages. In my chrome browser, network tab I can see the requests and responses. I want to be able to handle those callbacks in frontend somehow, did any of you met this type of problem?
My project is MVC and I do not have Success and Error actions in my controllers, it is an single page application with React.
UPDATE my whole iframe looks like this
This iframe is third-party integrations which does a callback on success and error to static URL: host/controller/success and host/controller/error
My mission is to catch when this happens in React, I hope this is possible somehow, I was trying to listen to 'message' event, but might be that I am doing anything incorrect.
Any suggestions are appreciated