S
SolidJS2mo ago
Ximaz

Fetch request render HTML content to my page

So, I am trying to do a GET fetch request, client-sided even though I should do it server-side, because of CORS, but I don't know yet how to do that. Anyway, the request was made to https://www.youtube.com/watch?v=blablabla but it seems that now, the page on which the request was made is rendering the HTML output of the YouTube video. I tried everything : - commenting out the request call - clearing Firefox' cache - opening the page on private tab - reloading the Vinxi dev server - removing node_modules and re-installing them Nothing worked so far, what ever I do, I still have the Youtube page rendering on my application... I don't know what to do to get back to the normal behaviour. Is there another kind of cache that I am missing ? If so, I really thought it would be gone when removing node_modules and clearing browser's cache... Any thought ?
1 Reply
Ximaz
XimazOP2mo ago
I would like to add that my URL bar goes from https://localhost:8080/ to https://localhost:8080/watch?v=... as if I were a Youtube page... I have no watch route on my frontend server. I tried to switch over Edge, which I never use, and it also renders the Youtube page. I never ever opened my application on Edge yet, so it's probably not a browser-related issue. I shutdown my server and started a Python server on the same port using python -m http.server 8080, cutted that one out too, and started my vinxi server back. This time, it worked. But why did I have to do all of that ? It seems even worse. It seems to be related to the fact that I had an index.html at the root of my project, which was downloaded for tests purposes, but the webserver though it had to be render at /. HTML files shuld be excluded by default imo.
Want results from more Discord servers?
Add your server