Hi everyone.
We are using esri-leaflet to enable Satellite Imagery in our maps. We have noticed that the layer attributions cannot be loaded because of CORS related issues.
Browser Errors:
Request/Response:
First I thought it is an issue on our side, the I thought it is an issue on esri-leaflet, but after diggig deeper it simply seems that the "static.arcgis.com" API endpoint (in this case https://static.arcgis.com/attribution/World_Imagery?f=json) does not send the required CORS header to function properly on websites. On the same page we also call some of our own APIs without CORS issues so the general browser setup and security policies are fine. The request headers are also the same. It's purely the arcgis server not sending the headers in the response.
Is this a known issue? I have found some CORS related posts on this forum but nothing directly confirming this.
Kind Regards
Danel