Getting 'Uncaught (in promise): AuthApiError Error' in angular app

I am trying okta-angular authentication, whenever I click login , I am getting below error

versions used :
@okta/okta-angular”: “^2.0.0”,
@okta/okta-auth-js”: “^3.0.0”,
Node -v : v12.16.1
angular 8

I’m getting the same error as well same packages. I’ve confirmed that login logout redirects are white listed. Any help would be greatly appreciated!!

I was able to get this to work locally, but not in production with the application on an SPA on AWS, served via CloudFront

So this problem was that I hadn’t set up CORs (classic menu --> Security -->API --> trusted origins)

Now getting a problem with the redirect not being found on my AWS S3 SPA, but probably that’s caused by my not configuring the index and 404 pages for the bucket properly.