How to run WeInRe with cross domain restriction on web
Any help on how can I resolve this issue?
Found it! The solution is to run the NodeJS server alongside Apache on the same port.
Here is the final solution to run apache website on port 80, node js service on port 8080 and use .htaccess RewriteRule from above blog post, modified to run WeInRe module through nodejs.
In the DocumentRoot of the apache website, add the following:
Options +FollowSymLinks -MultiViews
This will route all the WeInRe calls to the port 8080 at the server, but will not affect the client, and so no cross-domain errors.