I have setup OKTA with my angular 13 application and trying to use the OKTA "tokens" api to get the authorisation token. It works perfectly fine in POSTMAN but fails with the following error on Chrome;
error: "invalid_client" error_description: "Browser requests to the token endpoint must use Proof Key for Code Exchange."
looks like the browser is adding "Origin" header is present in the request to the /token endpoint of the authorisation server which is causing the problem. How to fix this? I am calling the api from my local ( http://localhost:4200/ ) and the url is whitelisted. I am using "grant_type" : "client_credentials" and I believe that is causing the problem. Normal "USERS" api for OKTA works fine so not sure what I am missing.