When i use arcgis api for js 4.7,it meet this problem:No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.,do anyone know how to resolve it?
Tgx sandy,
Don't use localhost:8080 in the url for your app if your webserver is at the same url as you have blocked out above use that url that way they will not been seen as two different servers and this error will not appear.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.