cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Business one version for HANA 9.2 PL 04 Service Layer

millicentdark
Contributor
0 Kudos

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 http://192.168.0.55:50000/b1s/v/BusinessPartners. 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.

Regards

Justice

Former Member

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.

Accepted Solutions (0)

Answers (0)