API Key issues with vector basemaps

1120
2
Jump to solution
07-22-2021 11:39 AM
Labels (1)
DanielDormont
New Contributor III

Hi, I am having some trouble getting vector basemaps to render using an API key other than the default key that comes with my Developer account. I created a CodePen example: https://codepen.io/dandormont-the-decoder/pen/vYmebqz?editors=100

I added "https://codepen.io" as a referer on this particular key for demo purposes, but on my own site I'm seeing a similar issue with a key that I created for that site. 

As you can see, the map loads, but some of the formatting is missing, for example the white rectangle around state route 1, and there is an error in the console from https://cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/sprites... with a "498 invalid token" error.

Do I need to do something special to allow vector basemaps to load with an API key that uses referers?

 

Thanks,

Dan

0 Kudos
2 Solutions

Accepted Solutions
GavinRehkemper
Esri Contributor

Thank you for the report. It seems like there may be an issue with how the sprites REST endpoint handles the call when an API key with a referer restriction is used. We are investigating.

View solution in original post

DanielDormont
New Contributor III

This seems to have been fixed now, thanks

View solution in original post

0 Kudos
2 Replies
GavinRehkemper
Esri Contributor

Thank you for the report. It seems like there may be an issue with how the sprites REST endpoint handles the call when an API key with a referer restriction is used. We are investigating.

DanielDormont
New Contributor III

This seems to have been fixed now, thanks

0 Kudos