Problem with linking files in the project, idx doesn't see files in the folder

I have a simple HTML page and main.js and style.css files in the same folder as index.html. In the HTML file, I have references to these files. Locally on my PC, everything works, but after launching it in idx, in the preview, I see that index.html doesn’t see the linked CSS and JS files.

Please help, locally on my disk these same files with the same folder structure work correctly, but on idx it looks like they don’t exist. How can this be fixed?