CORS - While making post request to get access toke from Angular

Hi Team,
I am facing CORS error while making a request to Below is my code.

Here is my error.

Help me to fix this. Thanks in Advance.

Hi Packia,

It looks like you’re missing a backend server to handle OAuth interactions. You shouldn’t do this from the FE code. This should solve the CORS issue as well as reduce the security hole of having all the credentials in the client-facing code.

1 Like

Thank you,
Its solved.