<?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 Got token for private web map, but still coming back with 'you do not have permission' in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/got-token-for-private-web-map-but-still-coming/m-p/511620#M47663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to open a private web map with the correct account details, but it's not working. I'm generating a token using the following JSON:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;string Data = "f=json&amp;amp;request=gettoken&amp;amp;username=&amp;lt;&amp;lt;MY_USER_NAME&amp;gt;&amp;gt;&amp;amp;password=&amp;lt;&amp;lt;MY_PASSWORD&amp;gt;&amp;gt;&amp;amp;referer=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A12345%2FWebForm.aspx" rel="nofollow" target="_blank"&gt;http://localhost:12345/WebForm.aspx&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(where 12345 is a made-up number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does return a token, which I then feed into an iFrame using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;this.MapFrame.Attributes["src"] = "//MyMaps.maps.arcgis.com/apps/Embed/index.html?webmap=LONG_WEBMAP_ID&amp;amp;amp;extent=1,-1,1,-1&amp;amp;amp;zoom=true&amp;amp;amp;scale=true&amp;amp;amp;search=true&amp;amp;amp;searchextent=true&amp;amp;amp;legend=true&amp;amp;amp;basemap_gallery=true&amp;amp;amp;disable_scroll=true&amp;amp;amp;theme=light&amp;amp;amp;token=" + Our_Token;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Our_Token is a parsed-down version of what is returned, and is basically the token only. I've checked this and it's correct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But every time I try it, I get the following errors in Chrome's Developer Console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;init.js:89 Error: You do not have permissions to access this resource or perform this operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Refused to display 'blahblahblahlonglink' in a frame because it set 'X-Frame-Options' to 'DENY'.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 22:33:41 GMT</pubDate>
    <dc:creator>MichaelBell8</dc:creator>
    <dc:date>2016-07-26T22:33:41Z</dc:date>
    <item>
      <title>Got token for private web map, but still coming back with 'you do not have permission'</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/got-token-for-private-web-map-but-still-coming/m-p/511620#M47663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to open a private web map with the correct account details, but it's not working. I'm generating a token using the following JSON:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;string Data = "f=json&amp;amp;request=gettoken&amp;amp;username=&amp;lt;&amp;lt;MY_USER_NAME&amp;gt;&amp;gt;&amp;amp;password=&amp;lt;&amp;lt;MY_PASSWORD&amp;gt;&amp;gt;&amp;amp;referer=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A12345%2FWebForm.aspx" rel="nofollow" target="_blank"&gt;http://localhost:12345/WebForm.aspx&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(where 12345 is a made-up number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does return a token, which I then feed into an iFrame using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;this.MapFrame.Attributes["src"] = "//MyMaps.maps.arcgis.com/apps/Embed/index.html?webmap=LONG_WEBMAP_ID&amp;amp;amp;extent=1,-1,1,-1&amp;amp;amp;zoom=true&amp;amp;amp;scale=true&amp;amp;amp;search=true&amp;amp;amp;searchextent=true&amp;amp;amp;legend=true&amp;amp;amp;basemap_gallery=true&amp;amp;amp;disable_scroll=true&amp;amp;amp;theme=light&amp;amp;amp;token=" + Our_Token;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Our_Token is a parsed-down version of what is returned, and is basically the token only. I've checked this and it's correct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But every time I try it, I get the following errors in Chrome's Developer Console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;init.js:89 Error: You do not have permissions to access this resource or perform this operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Refused to display 'blahblahblahlonglink' in a frame because it set 'X-Frame-Options' to 'DENY'.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 22:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/got-token-for-private-web-map-but-still-coming/m-p/511620#M47663</guid>
      <dc:creator>MichaelBell8</dc:creator>
      <dc:date>2016-07-26T22:33:41Z</dc:date>
    </item>
  </channel>
</rss>

