HttpWebRequest to Okta result in Forbidden 403
<p>I'm currently stumble on frustrating Forbidden 403 error when doing simple GET WebRequest to Okta. I've added my application url into Okta Admin > Security > API as CORS. Below is my code</p>

<pre><code>string requestURL = "https://myokta.oktapreview.com/api/v1/users/me";
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(requestURL);
request.Method = "GET";
request.Timeout = 120000;
request.ContentType = "application/json";
WebResponse response = request.GetResponse(); // exception Forbidden 403
</code></pre>

<p>I could copy paste the requestURL in internet browser and get the json response without any problem. And if I don't have session, it also return error code E0000005 - Invalid session.</p>

<p>If I cannot do it through WebRequest, any suggestion on which client to use in okta.core.dll ?</p>

<p>Please help me and any help would be very much appreciated. Thank you ...</p>