I was testing my first OpenCPU project, having the web test page in the same server than OpenCPU and the R package (an Ubuntu 14.04 server installed in a virtual machine inside Windows Server) it works fine, but I'll probably need the website to be in the Windows Server and OpenCPU (so R too) running in the virtual machine, so I tried the seturl function from OpenCPU to do that, but I got an error which says "that can be fixed enabling CORS in the server"
Looking for a solution I found http://enable-cors.org/server_apache.html In this article is told how to enable CORS in Apache, but what I couldn't find was what folder needs the permission to make OpenCPU remotely works.
This is how I call the package on virtual's machine server
ocpu.seturl("http://virtualmachine_ipaddres/ocpu/library/PruebaR/R")
I tried giving the permissions to the R folder and others but still not working. Any ideas?
Thank you for your help