I've encountered a problem while using ejs to link external stylesheets and script tags. Here's the link for my stylesheet:
<link rel="stylesheet" href="styles/index.css">
When I click on the link to the sheet and follow it (in VScode), I'm taken to the correct file location. So, I know it's pointing to the right place.
However, when I run this on localhost:5000, I receive an error message that says:
Refused to apply style from 'http://localhost:5000/styles/index.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
I see that it's referencing localhost:5000/styles/index.css, but I want it to point to the directories I've specified in my file structure instead of localhost.
Does anyone have a solution for this issue?
Thank you for your assistance.