i need to use XMLHttpRequest in order to communicate with a Chrome extension from my web page with javascript.
$("#sendMessageToExt").click(function(){
var xhttp = new XMLHttpRequest();
xhttp.open("POST", "http://127.0.0.1:31666/", true);
var data = "Message Received";
xhttp.send(data);
});
is it possible to have the server side (a very simple server for only receive and send shor messages) with javascript?
what i want is to communicate with my chrome extension.