i have project which uses RESTEasy The REST object
the jar contains of a file called resteasy-client.js this file is added to web pages in which it makes easier to create HTTP calls. there is a bug! once the file send to the client, there is line that is added by the server in : JSAPIWriter.java in method :writeJavaScript
writer.println("REST.apiURL = '" + uri + "';");
in https this url creates incorrect url which is HTTP! and not HTTPS! this is from the source on my web site:
REST.apiURL = 'http://proXXXXXXXX'; as you can see the protocol is not correct. i am looking for a way to over ride this issue, without doing changes to the original code file. Thanks for the help.
update this issue occurs due to that the serve is behind FW, and HTTPS is sent to the server as HTTP instead of https the question is how can i pass this JSAPI that its protocol is https(i can read it from the headers)