-1

How to send sms challenge in OKTA SDK from Angular 13

How can I send an sms challenge to the phone number given while enrolling to the factor using Okta. According to the OKTA documentation I am making a POST call to:

/api/v1/users/${userId}/factors/${factorId}/verify

https://developer.okta.com/docs/reference/api/factors/#request-example-31

This call I am making through the angular HTTP request but its failing with a CORS error. Do I need to add anything to the request headers to get it to work?

Yogesh
  • 246
  • 1
  • 4
  • 20

1 Answers1

0

You need to add your hosting URL to Trusted Sites in Okta Admin UI, under Security -> Trusted Sites as CORS enabled

Philipp Grigoryev
  • 1,985
  • 3
  • 17
  • 23