added CORS, prepared redis client