Sampo02/cors

Modified to call from anglarJS app.