Open Matomo,
Execute this code in browser console:
var UI = require('piwik/UI');
var notification = new UI.Notification();
notification.show('wwe', {context: 'error', id: 'test'});
Then close the notification. You will see such an error
It seems like the token
param is not posted with the request.