on 12-07-2022 7:37 AM
Hi Experts,
We have developed some custom java code in SAP CPQ to trigger the CPI end point to fetch data from On-premise BRIM system, But below is the error we are facing in CPQ while trying to call CPI end point.
Access to fetch at 'https://zzzz-iflmap.hcisbp.bb.hana.ondemand.com/http/CPQ' from origin 'https://YYYycpq.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Could you please help us resolve the issue?
vinaykumard
As you see CORS issue is coming from source domain (CPI). As per above comment from Priyanka, you have it fix through API Management having additional policy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinay,
To handle CORS, you can use SAP APIM before SAP CPI endpoint.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.