enabled cors in web config. fixed saving a task