webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

REST calls from business console works with Google Chrome but aren't working with Microsoft Edge/ IE

  • 1.  REST calls from business console works with Google Chrome but aren't working with Microsoft Edge/ IE

    Posted Sun May 07, 2017 06:43 AM

    Hi
    I have a custom BC Gadget which communicates to IS using REST. I am making this REST call using RestServiceProvider from BC (code below). I made sure I added required headers to be allowed on CORS extended settings on IS.
    Although this works fine on Google Chrome, the same app isn’t working on Microsoft Edge and Internet Explorer 11.x
    Extracted below from Microsoft Edge’s network logs:

    My CORS extended settings on IS:

    My code:

    $scope.restClient.url(urlString)
    .method("GET")
    .serverAlias(selectedServerAlias).remote(true).cors(true).scope($scope)
    .gadgetConfig(gadgetConfig)
    .success(function (response, $scope) {
    $scope.searchResults.showResults = true;
    }).error(function (response, $scope, status, headers, config) {
    $scope.eventBus.fireEvent(NotificationConstants.ERROR, "INVOKING REST URL:" + $scope.URLS[REST_URL_TO_INVOKE].url + "----STATUS:" + status);
    }).invoke();

    #webMethods-BPMS
    #BPM
    #webMethods


  • 2.  RE: REST calls from business console works with Google Chrome but aren't working with Microsoft Edge/ IE

    Posted Sun May 07, 2017 06:57 AM

    Fixed it.
    I have noticed chrome sending request headers as “Accept,samlassertion” while Microsoft Edge and IE are sending them as “accept,samlassertion”
    Capitalization of the 1st letter in “accept” is differing. I have modified my CORS suppored headers setting to have both of them. It worked.
    Changed from:
    watt.server.cors.supportedHeaders=Accept ,Cache-Control,authorization,samlassertion,Content-Type
    To:
    watt.server.cors.supportedHeaders=accept,Accept,Cache-Control,authorization,samlassertion,Content-Type


    #webMethods
    #webMethods-BPMS
    #BPM