CORS error even after enabling it from dahsboard


I am adding PKCE workflow for a React frontend SPA. I have enabled CORS from the dashboard for my localhost endpoint. A “Get” request on the /authorize is working and giving me back the access code and redirecting to my callback page. When do a “POST” call on /token endpoint for token exchange, that’s when I get a CORS error. I have checked the parameters of my request including client_id a couple of times but they seem to be fine. Also, I am not using the okta-react package and instead making a “fetch” call in react. Any ideas about this? Let me know if more information is required from my end.


Can you supply the code for how the Fetch call is made, are you passing mode, etc.

Thank You,