No 'Access-Control-Allow-Origin' header

08-11-2018 12:34 AM
New Contributor

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?

0 Kudos
1 Reply
MVP Esteemed Contributor

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.

0 Kudos