on 08-31-2023 10:07 AM
Can you share your package.json. Without knowing more I would say you might have run `cds add xsuaa` without the `-- for production` parameter and now your development configuration also wants to see a jwt token for every request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A couple of questions:
1. Do you get the unauthorized error just for the SAP call or for any service call in this project?
2. Go to the root of the project and run the following 4 commands and let us know what the results are:
a. cds env requires.auth.kind --for development
b. cds env requires.auth.strategy --for development
c. cds env requires.auth.kind --for production
d. cds env requires.auth.strategy --for production
3. If you want to use the PR API to update information (but even more as best practice) you should add "csrf":true to your API definitions. See https://cap.cloud.sap/docs/node.js/remote-services#csrf-token-handling
User | Count |
---|---|
72 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.