Add support to cross-domain request

I made this fix to be able to develop with rails running on port 3000 and the web app on a different port. I was getting a CORS error.

This solve it. And I think it will be useful because probably the pptv api will be public at some point.