HTML get error in webview after starting server.js

Question:

Hi all. I have a very very simple html on replit that is trying to access an API, which is accessed via server.js to avoid CORS issues.

At the moment, I can see that the HTML is working without the API information added in the replit webview, but as soon as I start the server.js node via shell, the webview updates and just says ‘Cannot GET /public/index.html’

Any suggestions as to why this might be? Thanks

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

code snippet

It’s probably a conflict between the two web servers. Are they in separate Repls?

2 Likes