Description
chat.php:21 Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided does not match the recipient window’s origin
ccess to XMLHttpRequest at ‘https://allchatta.com/’ from origin ****************(https) has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Blocked autofocusing on a form control in a cross-origin subframe.
For the First API call it give logged in response with Authtoken
When the postmessage API called
xhr.send(window.parent.postMessage({
event: ‘login-with-token’,
loginToken: data.data.authToken
}, ‘https://allchatta.com’)
);
It is producing error