Hello guys,
I am trying to post a request with XHR and with jQuery. When i use jQuery it is working fine, but when i post same message with XHR i get an error:
Here are the requests:
jQuery:
XHR:
I want to use the plain JavaScript because i do not want to load jQuery only for this post message.
I will appreciate any feedback,
Thank you in advance!
Best Regards,
Jordan