Topic
3 replies Latest Post - ‏2013-02-05T15:06:39Z by snehamandre
snehamandre
snehamandre
30 Posts
ACCEPTED ANSWER

Pinned topic Cross domain issue in importing websphere commerce jsp files into wordpress

‏2013-01-30T17:33:10Z |
Hi,

Few of my pages are getting loaded through wordpress, so I am including jsp files i.e. header and footer files from websphere commerce into wordpress. While doing it I am getting cross domain issue like in browser console i m getting error for dojo libraries. The following error I getting in websphere commerce console.

1/30/13 9:34:17:706 PST 0000011b CommerceSrvr E CrossSiteScriptingHelper handle CMN0522E: The request cannot be processed because it contains prohibited characters.

Please give me some solution for it.

Thanks in advance,
Sneha
Updated on 2013-02-05T15:06:39Z at 2013-02-05T15:06:39Z by snehamandre
  • Raj.S
    Raj.S
    511 Posts
    ACCEPTED ANSWER

    Re: Cross domain issue in importing websphere commerce jsp files into wordpress

    ‏2013-01-30T18:53:03Z  in response to snehamandre
    Hi,

    Hope this helps.

    http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.admin.doc/tasks/tsecsssp.htm
    Rgds,Raj.
    • snehamandre
      snehamandre
      30 Posts
      ACCEPTED ANSWER

      Re: Cross domain issue in importing websphere commerce jsp files into wordpress

      ‏2013-01-31T09:29:02Z  in response to Raj.S
      Hi,

      Thanks for the link you provided. I read the document and I added the bold line in the below module,

      <Module contextPath="/webapp/wcs/stores"
      fileServletEnabled="false" name="Stores"
      urlMappingPath="/servlet" webAlias="/wcsstore">
      <InitParameters adapters="XML/HTTP, BrowserAdapter"
      contextSetName="Store" handleDoubleClick="true"/>
      <XSiteScriptingProtection enable="false"/>
      <URLRedirectFilter enable="true"/>
      </Module>

      After adding the above line I am not getting any error in the websphere commerce console, But the error in the browser console is still coming because of which I am not able to use any of the dojo function. Below is the sample of the error which I am getting in Chrome.

      XMLHttpRequest cannot load http://<websphere commerce IP>/webapp/wcs/stores/dojo15/dojo/_firebug/firebug.js. Origin http://<wordpress ip> is not allowed by Access-Control-Allow-Origin.

      The same error I am getting for all the dojo js files which I am using in the application.

      Can you please give me some solution for it.

      Thanks & Regards,
      Sneha
      • snehamandre
        snehamandre
        30 Posts
        ACCEPTED ANSWER

        Re: Cross domain issue in importing websphere commerce jsp files into wordpress

        ‏2013-02-05T15:06:39Z  in response to snehamandre
        Hi,

        I got where the problem was. If I want to use dojo 1.5 js file from different domain I have to use dojo.xd.js instead of dojo.js.

        Thanks
        Sneha