I am trying socket io to connect to my server running the
servlet but I am getting CORS error. I tried to give localhost, 127.0.0.1, system ip. But still I am not able to figure out.
Am I missing something.
In order to run the following code do I need to run anything else or add something. My servlet is running on 8080 port
How to resolve this. I am generating the above html using servlet where I have already set response.setHeader("Access-Control-Allow-rigin","http://127.0.0.1:8080");
it is the same servlet which generates the html and process the request from html script.