Zum Hauptinhalt gehen

REST service layers not loading in Web 5.21, fine in ArcGIS Enterprise/WAB

Kommentare

4 Kommentare

  • Gareth Evans

    Hi Vyla 

    It's curious you're seeing different behaviour across VSW & WAB - I'd expect them to be the same in a CORS context.

    VSW honours ArcGIS Enterprise/ArcGIS Online's security configuration for Allow Origins (https://enterprise.arcgis.com/en/portal/latest/administer/windows/restrict-cross-domain-requests-to-your-portal.htm).

    By default, the Allow Origins list is empty so we allow all Origins (aka a CORS : * header). If you configure any Allow Origins, this list becomes a specific allow list.

    This error implies you're requesting from an origin not in your Allow Origins, which means it's probably got something set in there. I'd double check your settings there. If the list is empty, it could be that your ArcGIS Server has it's own independent Allow Origins set: https://enterprise.arcgis.com/en/server/latest/administer/windows/restricting-cross-domain-requests-to-arcgis-server.htm

    0
  • Vyla Grindberg

    I know, right? I'd expect them to react similarly, but alas.
    My Allow Origins list is empty in Enterprise, and ArcGIS Server AllowedOrigins is *, so there are no allow origins restrictions on either. I'm a bit stuck on this :/

    0
  • Nataliya Lys

    We also are getting "layer initialization failed' error. It happens randomly, for different layers, so it's hard to replicate the issue. I set my layers to ‘silent failure’, hoping that will make the error go away, but that doesn't seem to help. 

    0
  • Peter Jackson

    We also get “layer initialization failed” errors randomly but these usually disappear if we simply refresh/reopen our app. Sometimes it may take a couple of attempts. There is no problem in the ESRI web map itself. 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.