I have 2 sites, the first is www.chat.com.br and the second is www.view.com.br .
My goal is:
1 - Collect chat alerts
2 - Update the site view constantly with the alerts collected from the chat.
What I thought I would do was get the data via javascript, make the chrome open in a new tab www.view.com.br a> by throwing the window into a variable and finally updating the html of the view.
But I came across cross-origin
, and I can not get the chat information to get to the view.
My question is:
1 - How to make the site view receive the information of the site chat. 2 - How to make the view update constantly, without any refresh.
I'm currently running javascript with an extension I created from chrome.
In the chat site they make available a field to run js in the backend. Can I use this to send data to another site?