I want to upload a js file using jsdeliver but i am getting error cross-Origin read blocking
Yes it is, first upload it to your assets as a txt file, then you would have to do something like this
<script>
fetch('**TEXT FILE LINK FROM WEBFLOW**')
.then(response => response.text())
.then(script => {
const scriptEl = document.createElement('script');
scriptEl.type = "text/javascript";
scriptEl.textContent = script;
document.head.appendChild(scriptEl);
})
.catch(error => console.error('Error loading script:', error));
</script>