gbowne1 / RadioLogger

A Radio Logging application build with NodeJS and ExpressJS
GNU General Public License v3.0
6 stars 6 forks source link

Login issues #29

Closed gbowne1 closed 1 year ago

gbowne1 commented 1 year ago

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

gbowne1 commented 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.

jzunigarce commented 1 year ago

For access to the assets, i set the paths from the public folder. image image

gbowne1 commented 1 year ago

Cool. I will look when I get back. Looks good so far. More issues in the TODO.md

gbowne1 commented 1 year ago

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.

jzunigarce commented 1 year ago

The path is because i configure that from the /public folder. CAn you show an example of the error?

gbowne1 commented 1 year ago

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).

jzunigarce commented 1 year ago

Change the href attr of the login.css in the file login.html, href='/css/login.css'

gbowne1 commented 1 year ago

Yeah that did it. 100%.

Edit: fixed and pushed.