Closed gbowne1 closed 1 year ago
I'm pretty sure this is a CORS issue. I have no idea what tabs.js does for sure. It was a remnant from a previous iteraton of the project, but it was wired up by script tag so I tossed it in.
For access to the assets, i set the paths from the public folder.
Cool. I will look when I get back. Looks good so far. More issues in the TODO.md
Hmm.. that's not right. Path to login.css should be /src/client/public/css/login.css on the server, not /css/login.css.. but since we are serving from /public/.. yeah.
It still 404's as well as does a MIME Type Mismatch... assuming its talking about a path error.
The path is because i configure that from the /public folder. CAn you show an example of the error?
navigated to localhost:3000/login I get this in console:
The resource from “http://localhost:3000/src/client/public/css/login.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Change the href attr of the login.css in the file login.html, href='/css/login.css'
Yeah that did it. 100%.
Edit: fixed and pushed.
I am still getting The resource from “http://localhost:3000/src/client/public/css/login.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). while on the /login route
Also getting Uncaught SyntaxError: redeclaration of const registerTab from tabs.js