Get express auth token through vue app

I am getting the following error when I try to get the auth token from a vuejs 3 application.

STUDENT:1 Access to fetch at ‘http://api.signicat.io/oauth/connect/token’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.

Hi Madhawa,
The error you are experiencing is thrown because we do not allow using OAuth client credentials from the browser. It’s meant for machine-to-machine authentication and must be done server-side.