Select to view content in your preferred language

Prompted for sign in using apiKey in SDK

147
1
Jump to solution
3 weeks ago
JohnDMorgan
Occasional Contributor

Hello, 

I am working through the Display a Map tutorial for SDK for JS: https://developers.arcgis.com/javascript/latest/tutorials/display-a-map/. When I am referencing my API key from CodePen I get a sign-in prompt like so 

JohnDMorgan_0-1731175423473.png

Using <script> var esriConfig = { apiKey: "YOUR_ACCESS_TOKEN" }; </script>

But I do put my key in there. Is there a way to avoid getting this prompt? I am just trying to add the basemap as outlined int the tutorial

 

<arcgis-map basemap="arcgis/topographic" center="-118.805, 34.027" zoom="13"> <arcgis-zoom position="top-left"></arcgis-zoom> </arcgis-map>

Thanks, 

Derek

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JohnDMorgan
Occasional Contributor

I am beginning to think that my issue was in the Referrer URLs and that I may be putting the wrong thing in there. 

View solution in original post

0 Kudos
1 Reply
JohnDMorgan
Occasional Contributor

I am beginning to think that my issue was in the Referrer URLs and that I may be putting the wrong thing in there. 

0 Kudos