Hi everyone!
I’ve been having trouble to connect the fileuploader to my Cloudflare images API. It seems like it’s a CORS issue. I’ve managed to get everything working by having Xano do the API call, but it’s a lot of hassle - the workflow makes the call to the xano api, xano uploads the file, calls back to weweb, etc.
Anyone know if there’s a CORS or security setting in Cloudflare that would enable me to make the call straight from weweb?
It most likely is how you should be doing it, the chances are that if you’re getting blocked by CORS, you should use a backend (Xano) as a middleman to protect your API keys.
1 Like
Hey!!! Roberto, you make a good point about using a backend like Xano to handle the API calls for security reasons. However, if Neal is looking for a more streamlined approach, there might be a way to adjust the CORS settings in Cloudflare.
Neal, check the Cloudflare dashboard under the “CORS” settings for your domain. You might need to allow specific origins or methods to enable direct calls from Weweb.
1 Like