Fix CORS issue that prevented request from angular