im working on a project and i need to store fetched data from an API inside a state but it returns CORS, however, the data is succesfully fetched when i only console.log it