I created a project using drizzle and react. I used the moralis npm package, my server is currently connected to my ganache local blockchain. The chain has not changed since starting development so the accounts remain unchanged. Upon using either login or logout from the react demo on the GitHub page, I get a preflight error, the requests takes an enormous amount of time and finally ends up crashing with a Cors error. I am not sure if perhaps I am doing something wrong and this needs to be handled by a cloud function or maybe server side, or if perhaps there is a different npm package that I am to use with React. Everything else with the implementation of my solidity code with the front end is working as expected. I was just trying to save my images on Moralis to avoid the cost associated with storing large data on chain. Any help would be greatly appreciated!
Access to XMLHttpRequest at ‘https://1edouby2ppwf.moralis.io:2053/server/users’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.