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
Post a Comment