URL has been blocked by CORS policy, using Netlify Functions

Also, based on your error message:

Looks like you’re trying to connect to localhost, which is not what you should be doing.