Shopware 5 Backend Loop

I have installed, and re-installed Shopware 5 multiple times on my local machine, each time no errors appear and it seems to all go smoothly

But when I try and log-in in the backend, the page just reloads each time. The credentials are correct, as when I put in the wrong credentials, it tells me and prevents me from attempting to log-in.

The only thing close to an error that I can find is multiple instances of the following in the console:

Uncaught TypeError: event.data.indexOf is not a function at i.onPostMessage (base?file=bootstrap&:16585) at g (ext-all.js:21)

This means nothing to me, and I cannot find much about the issue online in relation to shopware 5. Has anyone dealt with this, or know what I might need to do to fix this issue?