As I work on developing my app from the backend, I am encountering an issue with loading CSS locally on my page. I am utilizing Node.js, Express.js, and EJS for my pages - part of the MEN/MEAN stack.
<link href="../public/stylesheets/style.css" rel="stylesheet" type="text/css">
I have verified that the link is correct as VS Code confirms, yet upon loading the page, I receive an error message. The error states: "The resource from “http://localhost:3000/public/stylesheets/style.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)"
Interestingly, the CSS works perfectly fine when using the style tag instead. Any idea what might be causing this issue?