I’m stumped on a CORS issue I’m getting back via my browser’s developer console.
I have the call setup as such ({{apiKey}} removed):
$http({
method: ‘POST’,
url: ‘https://dev-345473.oktapreview.com/api/v1/users/’ + id,
headers: {
‘Accept’: ‘application/json’,
‘Content-Type’: ‘application/json’,
‘Authorization’: ‘SSWS {{apiKey}}’
},
data: JSON.stringify(oktaUserRecord)
})
This call fails with the following:
I’ve already confirmed that the Trusted Origins for this application are configured correctly:
If I take the JSON that’s generated from data: JSON.stringify(oktaUserRecord)
, and paste that into the Body of a Postman call to the exact same URL, I get a 200 response back, including the updated User Model.
I have other calls in my application to Get/Create Users in Okta that work without any issue.
What am I missing here?
Thank you.