07/05/2026

How to embed code in webflow with visual studio code

I want link the visual studio with my webflow website to make 3js code without the need to preview it multiple times in preview mode , but the two script (<script type="module" src="http://localhost:3000/@vite/client"></script>

<script type="module" src="http://localhost:3000/src/main.js"></script>) doesn't work at all and give me this error message (Unable to load external script:

http://localhost:3000/src/main.js

Unable to load an external script due to security restrictions (CORS). Verify that .canvas.webflow.com is allowed in the script’s domain permissions.

Unable to load external script:

http://localhost:3000/@vite/client

Unable to load an external script due to security restrictions (CORS). Verify that .canvas.webflow.com is allowed in the script’s domain permissions) and i read the attached document but in the end the script give me still the error message ...so how can i fix it

2
3 replies
07/05/2026
Unresolved