<?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 403 error with presumably valid token in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/403-error-with-presumably-valid-token/m-p/1055342#M39924</link>
    <description>&lt;P&gt;Hi All I am trying to access my customly styled base map layer, with OpenLayers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ol-mapbox-style for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I receive a 403 response with follwoing url:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;A href="https://basemaps-api.arcgis.com/arcgis/rest/services/styles/&amp;lt;STYLE" target="_blank"&gt;https://basemaps-api.arcgis.com/arcgis/rest/services/styles/&amp;lt;MY_STYLE_ID&lt;/A&gt;&amp;gt;?apiKey=&amp;lt;MY_API_KEY&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Api Key should have basemaps permission (or at least the ui tells me so)&amp;nbsp;&lt;/P&gt;&lt;P&gt;codesnippet:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;this.map &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;Map(...magic...)&lt;BR /&gt;olms(this.map, &amp;lt;URL_AS_ABOVE&amp;gt;);&lt;/PRE&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 18:06:17 GMT</pubDate>
    <dc:creator>AlexanderStukanov</dc:creator>
    <dc:date>2021-05-06T18:06:17Z</dc:date>
    <item>
      <title>403 error with presumably valid token</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/403-error-with-presumably-valid-token/m-p/1055342#M39924</link>
      <description>&lt;P&gt;Hi All I am trying to access my customly styled base map layer, with OpenLayers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ol-mapbox-style for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I receive a 403 response with follwoing url:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;A href="https://basemaps-api.arcgis.com/arcgis/rest/services/styles/&amp;lt;STYLE" target="_blank"&gt;https://basemaps-api.arcgis.com/arcgis/rest/services/styles/&amp;lt;MY_STYLE_ID&lt;/A&gt;&amp;gt;?apiKey=&amp;lt;MY_API_KEY&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Api Key should have basemaps permission (or at least the ui tells me so)&amp;nbsp;&lt;/P&gt;&lt;P&gt;codesnippet:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;this.map &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;Map(...magic...)&lt;BR /&gt;olms(this.map, &amp;lt;URL_AS_ABOVE&amp;gt;);&lt;/PRE&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 18:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/403-error-with-presumably-valid-token/m-p/1055342#M39924</guid>
      <dc:creator>AlexanderStukanov</dc:creator>
      <dc:date>2021-05-06T18:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: 403 error with presumably valid token</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/403-error-with-presumably-valid-token/m-p/1055350#M39925</link>
      <description>&lt;P&gt;Alexander,&lt;/P&gt;&lt;P&gt;Try using "token" instead of "apiKey". For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://basemaps-api.arcgis.com/arcgis/rest/services/styles/&amp;lt;MY_STYLE_ID&amp;gt;?token=&amp;lt;token&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 May 2021 18:17:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/403-error-with-presumably-valid-token/m-p/1055350#M39925</guid>
      <dc:creator>GeoJosh</dc:creator>
      <dc:date>2021-05-06T18:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: 403 error with presumably valid token</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/403-error-with-presumably-valid-token/m-p/1106005#M42499</link>
      <description>&lt;P&gt;I am using `apiKey` successfully instead of `token`. Not sure which is correct...&lt;/P&gt;&lt;P&gt;Things to check:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Any referer restrictions on the API key? Do they match the page's domain?&lt;/LI&gt;&lt;LI&gt;Is the API key configured to have access to your content item (the style)? If you want, you can make the content item public.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;After you change the settings, the page says "&lt;STRONG&gt;it can take 15 minutes to propagate these updates&lt;/STRONG&gt;". So, grab some coffee and check back later I guess &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/403-error-with-presumably-valid-token/m-p/1106005#M42499</guid>
      <dc:creator>Matthias234615</dc:creator>
      <dc:date>2021-10-08T16:53:53Z</dc:date>
    </item>
  </channel>
</rss>

