java - How to resolve "XMLHttpRequest cannot load" issue? -


I have two different modules: A module on the local network and the local module on the other web accepts various standards. According to the passed parameters it executes the specific code snippet.

I want to send input from the web which runs locally so that it can run with the given parameters. But I'm getting the error:

  "XMLHttpRequest http: //192.168.xx.xx: 8080 / myurl can not load Genesis http: // localhost: 8080 Access-Control- Allow-Origin. "In my case, I have to send a request from mydomain to specific IP addresses (where the celllet processes an input). 
How do I set up cross domain requests using jsp to solve the above error?

You can probably use code for:

  httpResponse.setHeader ("Access-Control-Permission-Origin", "*");    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -