Krowemoh / vue3-without-build

Using Vue Without a Build Step
14 stars 6 forks source link

Problem running the sample #1

Open mediabuff opened 1 year ago

mediabuff commented 1 year ago

Thanks for the blog article and sample code. I am able to run plain vanilla index.html, but can't make SFC or native loader working. I get:

index-native.html:1 Access to script at 'file:///C:/MyDevProjects/MySandbox/Templates/vue3-without-build/table.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.

Krowemoh commented 1 year ago

Hi it looks like you’re trying to develop on your own machine. Due to the way Cors and local host work you won’t be able to. You’ll need to set up a simple web server and then try it out.

I use nginx myself.