<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: code&amp;quot;: 498, &amp;quot;message&amp;quot;: &amp;quot;Invalid token. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1130012#M75753</link>
    <description>&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;Now error is gone but we are not getting response and getting below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveenbeti_0-1641198453342.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30621i68D65C5C5E4E0D17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="naveenbeti_0-1641198453342.png" alt="naveenbeti_0-1641198453342.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;getting cors error.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 08:27:59 GMT</pubDate>
    <dc:creator>naveenbesri</dc:creator>
    <dc:date>2022-01-03T08:27:59Z</dc:date>
    <item>
      <title>code": 498, "message": "Invalid token.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1129992#M75748</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;When i try to get arcgis portal users with below rest url in the code level. Im getting below error&lt;/P&gt;&lt;DIV class=""&gt;function _verifyUserRole(username, token) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = () =&amp;gt;{ if(xhttp.readyState == XMLHttpRequest.DONE) { var jsonResponse = JSON.parse(xhttp.responseText); } }; xhttp.open("GET", "&lt;A href="https://mociazingiapt01.mocidt.gov.qa/portal/sharing/rest/portals/0123456789ABCDEF/users?username=" target="_blank" rel="nofollow noopener noreferrer"&gt;https://domainname/portal/sharing/rest/portals/0123456789ABCDEF/users?username=&lt;/A&gt;"+username+"&amp;amp;f=pjson&amp;amp;referer=&lt;A href="https://mociazingiapt01.mocidt.gov.qa%26token%3D/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://domainname&amp;amp;token=&lt;/A&gt;" + token, true);&lt;/DIV&gt;&lt;DIV class=""&gt;xhttp.send(); }&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;"{"error": { "code": 498, "message": "Invalid token.", "details": [] }}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when i try to access the same url in the browser im getting response.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please help me on this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 03:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1129992#M75748</guid>
      <dc:creator>naveenbesri</dc:creator>
      <dc:date>2022-01-03T03:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: code": 498, "message": "Invalid token.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1129996#M75749</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/162655"&gt;@naveenbesri&lt;/a&gt;&amp;nbsp;- try to send the token in the request header like below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;xhttp.setRequestHeader("token", token);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 06:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1129996#M75749</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2022-01-03T06:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: code": 498, "message": "Invalid token.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1130012#M75753</link>
      <description>&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;Now error is gone but we are not getting response and getting below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naveenbeti_0-1641198453342.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30621i68D65C5C5E4E0D17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="naveenbeti_0-1641198453342.png" alt="naveenbeti_0-1641198453342.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;getting cors error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 08:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1130012#M75753</guid>
      <dc:creator>naveenbesri</dc:creator>
      <dc:date>2022-01-03T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: code": 498, "message": "Invalid token.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1130021#M75754</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/162655"&gt;@naveenbesri&lt;/a&gt;&amp;nbsp;- try with following&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;xhttp.setRequestHeader('Access-Control-Allow-Origin','*');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope your server has CORS enabled...&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 09:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1130021#M75754</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2022-01-03T09:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: code": 498, "message": "Invalid token.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1130045#M75760</link>
      <description>&lt;P&gt;I tried this before but no luck getting same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 12:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1130045#M75760</guid>
      <dc:creator>naveenbesri</dc:creator>
      <dc:date>2022-01-03T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: code": 498, "message": "Invalid token.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1364801#M83218</link>
      <description>&lt;P&gt;Did you ever figure this out?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 18:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-quot-498-quot-message-quot-quot-invalid-token/m-p/1364801#M83218</guid>
      <dc:creator>sigccil</dc:creator>
      <dc:date>2023-12-28T18:26:52Z</dc:date>
    </item>
  </channel>
</rss>

