Is there any way to handle this error I'm facing with my Django project?
Refused to execute script from 'http://127.0.0.1:8000/static/js/register.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
I keep getting this error even thought I have the register.js file at the right place.
I expected my javascript codes to function but it doesn't.