Issues with flask API on vercel

Hi @marcello-calabrese, welcome to the Vercel Community!

Thanks for posting your code here. It looks like you did not specify the allowed origins when configuring CORS. From the flask-cors docs, you need to use the origins options to allow a list of origins. I see you are using HTML files directly in the browser, I’d suggest adding a simple HTTP server in front of it and adding it’s URL in the origins list:

You might also find our post about all the ways of using CORS on Vercel. I highly recommend reading it.