locked
MS CRM 2011 http and https RRS feed

  • Question

  • Hi,

    I have so infrastructure where on one server there are several CRM Organizations. And one need only access via HTTP, and to the other only by HTTPS.

    For this was created certificate, in IIS for crm site added binding of ssl type on port 443, in CRM Deployment Manager switched binding type in HTTPS and for all services prescribed port 443. As a result, CRM is accessible via HTTP and HTTPS.

    But the problem was discovered when custom java-scripts stopped work. It turned out that /XRMServices/2011/OrganizationData.svc, accessed by scripts - refuses to work on the two protocols (either works only for http, or at https), while /XRMServices/2011/Organization.svc and /XRMServices/2011/discovery.svc work fine on both protocols.

    What am I doing wrong?

    Please, feel free to add your comments.

    Tuesday, September 27, 2011 9:08 AM

All replies

  • You problem is due to Cross Site Scripting protection of Internet Explorer.

    Because you have changed the network addresses to https, you have told the application to respond with this addresses. This is separate from the URL which you use to open the webpage in Internet Explorer.

    I assume you are using GetServerUrl() in your script. This function returns the url according to the configured values in the Deployment Manager, not based on the url you have used to navigate to the page. So if you used http://mycrm to open the page and configured CRM to be https://mycrm you will get an "Access denied" error.

    Therefore you have either to navigate to your crm with https://mycrm (which should be no problem as it is already configured) or you have to build the server url yourself. See http://myencounterwithcrm.wordpress.com/2011/05/24/crm-2011-alternative-to-context-getserverurl/


    My Blog | Microsoft Dynamics CRM proposal on stackexchange
    • Proposed as answer by Marco Dodaro Friday, May 4, 2012 3:32 PM
    Saturday, October 8, 2011 7:41 PM