0đ
â
Youâre running into a CORS error which means that the server youâre making a request to is not allowing requests from your client domain. If you own the server youâll need to add your domain to the list of allowed domains, or if this fails, check that the request method âPOSTâ is allowed.
It looks like youâre then getting the âres.responseâ error as when the error gets caught in the error function, itâs returning an error message which doesnât have a âresponseâ property. Try console.logâing the âresâ response to see what itâs giving you and adjust the property youâre using from there.
Source:stackexchange.com