locked
How to hide ms crm base url in html RRS feed

  • Question

  • Hi, Actually we are using some crm web resources in html is it possible to hide crm urls?. please see the below details. Please help me to build dynamic url in html

    we are using like this

    <script src="https://example.crm5.dynamics.com//WebResources/PolicyInfo"></script>

    Now i want to hide like this

     <script src= window.parent.sessionStorage.getItem("myurl"); + "PolicyInfo"></script>

    <script type="text/javascript">
        function call() {
        debugger;
            sessionStorage.myurl = "";
    sessionStorage.setItem("myurl","https://example.crm5.dynamics.com//WebResources/");
      var vamurl  = sessionStorage.getItem("myurl");
      return vamurl;
        }
        window.onload = call;
    </script>
            <script src= window.parent.sessionStorage.getItem("myurl"); + "PolicyInfo"></script>

    or

    <script src= call(); + "biz_PolicyInfo"></script>

    Both methods are not working. Please help me on these.




    Tuesday, January 13, 2015 9:19 AM

Answers

  • type src="new_webresourcename" without the organizarion url and that solved the prob
    Wednesday, January 14, 2015 5:19 AM

All replies

  • Hello,

    I'm really sorry but I have a stupid question - Why do you need it?


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Tuesday, January 13, 2015 9:22 AM
    Moderator
  • Because client asking like this only so when anyone see the view source in browser crm url's should be in hidden state only. Is it possible?


    Tuesday, January 13, 2015 9:25 AM
  • Why not to use something like

    <script src="/WebResources/PolicyInfo"></script>


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Tuesday, January 13, 2015 9:29 AM
    Moderator
  • I had already tried that one it is not working

    Tuesday, January 13, 2015 9:35 AM
  • If someone knows how to view the source code he probably knows also to check the network traffic from the browser console, so it's kind of useless trying to hide the full url of a WebResource

    My blog: www.crmanswers.net - Rockstar 365 Profile

    Tuesday, January 13, 2015 9:51 AM
  • Sorry I am looking for dynamic url because we are developing application as a product. so we can directly give solution  to clients with few changes
    Tuesday, January 13, 2015 9:55 AM
  • type src="new_webresourcename" without the organizarion url and that solved the prob
    Wednesday, January 14, 2015 5:19 AM