Issue Trying to Update a User (api/v1/users/{userId})


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):

method: ‘POST’,
url: ‘’ + 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.


Can you show the pre-flight request and response from the developer tools? (It’s the OPTIONS call).

Any chance you have more than one Okta org setup and the CORS definition isn’t in the right org?


Here is the pre-flight request:

There is no response.

As for your second question, I don’t believe there is more than one Okta Org setup - in my test account, I have one Application configured, and then I setup the Trusted Origins based on my current development environment.

Not sure if that helps.