Showing results for 
Search instead for 
Did you mean: 

Print Service CORS problem

0 Kudos


I've created a Fiori app and deployed to my Public Cloud system.
When I execute my app and it try to call the Print Service API I get this message:

Access to fetch at 'https://api.****' from origin 'https://my******' 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.

Does anyone knows how to solve this?


View Entire Topic
Active Contributor
0 Kudos

I would think you should deploy the SAPUI5 app to the BTP HTML5 repository and define the Print Service API in a Destination. This destination then can be configured in the xs-app.json. That way you don't have to hardcode any credentials in the Application and you solve also the CORS problem. Not sure if you mean S/4HANA Cloud with "Public Cloud". And I'm also not sure if you can embed a BTP HTML5 app into the S/4HANA Cloud Launchpad. But SAP Build Work Zone would be an option if one central entrypoint is needed.