Skip to Content

SAP Business one version for HANA 9.2 PL 04 Service Layer

Hi Experts,

please am making ajax call to service layer 9.2 PL04 from my javascript client application,it returns http status code 200 but http response is blank and throws "XMLHttpRequest cannot load No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:6698' is therefore not allowed access."Cors settings have been configured in the b1s.conf.Using query to make the ajax calls.any solution from my experts.



Add comment
10|10000 characters needed characters exceeded

  • same here, with HANA 9.2 PL 04

    I can add to the info, my code works without problem in a 9.1 PL08 version.

    b1s.conf has:

    "CorsEnable": true,

    "CorsAllowedOrigins": "*",

    the answer to the POST "/b1s/v1/Login" is correct,

    the problem is only with the GET request

    ( I've not tested PUT or DELETE yet)

    I've tried also with:

    CorsAllowedOrigin: "http://server:port"

    .. same results

    Off course, each change has his restart.

  • Get RSS Feed

0 Answers