@JLX89
This is not not 'Access-Control-Allow-Origin'
But i faced this error too.
Do you try to use AgencyOS? or only Directus ?
Because if you use AgencyOS script you import a lot of things automatically. SO i can't confirm at 100% what i did.
In my case, this error (401) disapeared when i use default admin account to install AgencyOS. And then only, i have created a new admin user.
And magically, i can connect with the new account.
Not very technical but it works. Hope it helps.