Location-allocation API Not working in Javascript

310
1
12-26-2022 06:06 AM
DhaneshaD
New Contributor

I am trying to use Location-allocation API in Javascript 4.25 but I am getting cors error even though I added my URL referrers. Please refer to the screenshot to check.

 

Note- API is activated in my other account. And I am using key from that account.

0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

Hi @DhaneshaD. I wonder if this is related to running the app locally over HTTP. Can you try hosting the app via SSL so that it uses HTTPS?

0 Kudos