2025 Apr 03 10:58 AM - edited 2025 Apr 03 11:03 AM
Hi SAP Experts,
I have developed and deployed an SAP BTP CAP application on the SAP BTP Cloud Foundry environment and integrated it with SAP Build Work Zone, Standard Edition.
I am using the SAP Cloud SDK (@Pa_Vi-cloud-sdk/mail-client) to send emails from my SAP BTP CAP application. The email functionality works perfectly when testing locally using SAP Business Application Studio (BAS) or when accessing the application directly in the Cloud Foundry environment in SAP BTP.
However, when I open the application and try to send an email through SAP Build Work Zone, Standard Edition, I encounter a 403 Forbidden error while sending an email.
I have already added the necessary routes in the xs-app.json file, but the issue persists.
Has anyone faced a similar issue? Are there additional configurations required for SAP Build Work Zone to allow outbound email requests?
Any insights or suggestions would be greatly appreciated!
xs-app.json:
xs-app.json
{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"routes": [
{
"source": "^/MailService/(.*)$",
"target": "/MailService/$1",
"destination": "srv",
"authenticationType": "xsuaa",
"csrfProtection": false
}
]
}srv > mail.cds:
@protocol: 'rest'
@path : '/MailService'
service Catalog {
@open
type object {};
action sendemail();
}Error:
Regards,
Syed
Request clarification before answering.
Make sure that you call the endpoint via the relative path. Cross check Calling Service using AJAX in Fiori Elements Extension doesn't work in Launchpad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.