I'm able to access my web app without any issues if I use
localhost:8080. But a REST call (by the ArcGIS JS API) fails if I use
exportImage REST call works properly but the
query REST call invoked by
featureLayer.selectFeatures fails with a Not allowed by Access-Control-Allow-Origin error.