Creating a custom login and sign up with React Typescript

I would like to add that I am currently testing the api and I am having cors errors when trying to send a post request to log in even though I have the right origin url written in my settings.