Hoppa till huvudinnehållet

Anyone has working CORS with HTML5 Viewer 2.5.2?

Kommentarer

4 kommentarer

  • Permanently deleted user
    Hi there,

     

    This often happens when the base URL of the viewer you are launching does not match the start of the configBase in the URL. So for example:

     

    http://dbriggs-example.contoso.com/Html5Viewer/index.html?configBase=http://dbriggs-example.contoso.com/Geocortex/Essentials/4.4.2/REST/sites/Charlotte2/viewers/viewer1/virtualdirectory/Resources/Config/Default#

     

    This viewer will load, because the beginning of the URL and the beginning of the configBase match (dbriggs-example.contoso.com).  

     

    With that in mind, does your domain match the configBase in your URL?

     

    Thanks!

     

    Danny
    0
  • Permanently deleted user
    Hi Danny

     

    Thanks for the reply. Yes, you are right, by default the domains should match.

     

    We have Essentials on different server. I have no issues to start site from the same domain.

     

    I'm trying to run something like this locally from IIS server.

     

    http://localhost/gvh/index.html?configBase=http://myserver.com/Geocortex/Essentials/443/REST/sites/Site1/viewers/Site1/virtualdirectory/Resources/Config/Default

     

    My undersdtanding that there is posibility to allow different domains, but the article is for version 2.4 and Viewer 2.5.2 is quite different from 2.4 so I'm not sure if the article is still valid.

     

    Regards

     

    Frank
    0
  • Permanently deleted user
    Hi Frank,

     

    Thanks for confirming that, sorry for my initial confusion!  

     

    I spoke to one of my colleagues about it, and we discovered that there was in fact a change that needed to be made to step 3 in that article.  You'll need to add the geocortex._configDomains part right before the var viewerConfig = {... part.  

     

    I've updated the article.  The steps that are there should work with the latest verison of GVH.  

     

    Thanks!

     

    Danny
    0
  • Permanently deleted user
    Thanks Danny!

     

    That works well. Thanks for your help.

     

    Frank 

     

     
    0

Du måste logga in om du vill lämna en kommentar.