Getting Request CacheStorage.requestCacheNames failed Error For my Login Page

I am making a login/registration page for Electron js webapp.

I am only using JavaScript, HTML, and CSS and I am using Indexedb to store user credentials in a database.

I can see it successfully saving the username and password in the Developer Tools section under Application in Electron js window but when the user tries to login I am getting this error.

The user is just redirected to a blank page

Request CacheStorage.requestCacheNames failed. {"code":-32602,"message":"Invalid security origin"}"

I tried adding a console.log() to see if the user was successfully logged in but I am not seeing anything on my console either

Here is a link to my code on codepen:
 

Adding a console.log() and alert() to print out the user who is attempting to login.