2024 Jun 09 2:15 AM - edited 2024 Jun 10 1:51 AM
Hi experts,
a Python Flask app shall be deployed to an SAP BTP Cloud Foundry subaccount with a web server handling security (XSUAA). The app appears to work well during local tests, or when XSUAA is locally simulated. However, as soon as the app is pushed to the BTP subaccount with XSUAA any modifying POST results in a 'Forbidden' response. When analyzing the respective logs, this response stood out: "POST request to /curate/279/update completed with status 403 The request does not contain a x-csrf-token".
I did attempt to implement the following code to obtain the x-csrf-token in GET and use it in the header in POST, but failed to obtain a value for x-csrf-token in GET.
Perhaps one of you could help figure out how I could get a value for x-csrf-token in GET?
Thank you.
Request clarification before answering.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.