Hello Webflowers!
I’ve been trying to connect a Webflow website with Webflow CMS API. Essentially what I’m trying to do is once I click a button on my Webflow site, I’d print the basic site info given by Webflow CMS API. However, I’m getting this error:
Access to XMLHttpRequest at ‘https://api.webflow.com/info’ from origin ‘https://testing-webflow-cms-api.webflow.io’ 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.
According to this answer on a similar post, using a proxy is the only way. However, 1- this is not safe, see this and 2- is it even possible to use a proxy on the client side? i.e. Webflow designer? How to approach this?
Here is my site Read-Only: LINK