teachablemachine-community icon indicating copy to clipboard operation
teachablemachine-community copied to clipboard

[BUG]: don't work in local webpage

Open karlTH opened this issue 4 years ago • 2 comments

Describe the bug i've create a webpage and it don't work in local

To Reproduce 1.create a web page with the code generate with teachablemachine 2. download the model in "my_model" andd unzip 4. click on start See error : URL scheme must be "http" or "https" for CORS request. teachablemachine2

Expected behavior i'm teacher in middle school. i would like that my student could test the model simply with there data in local webpage

Screenshots If applicable, add screenshots to help explain your problem.

Additional context test in chrome and windows10

someone have a solution thanks a lot

karlTH avatar Apr 27 '21 20:04 karlTH

Are you're trying to open the web-page locally (via file:// protocol) i.e. double clicking the .html file? Because modules only work via HTTP(s), so all you need to do is use a local web server. If you are on VS Code you could use Live Server , an extension that adds a right-click option to run your pages with a local server.

Totobriac avatar Aug 22 '21 12:08 Totobriac

Hello, yes, i'm trying to open the web-page locally. thanks a lot

karlTH avatar Aug 23 '21 07:08 karlTH