Error in Sening POST data to SAP using Webhook

I want to send Quotation data in POST API from my localhost to SAP using Webhook. I want to send POST data on submit. I have Request URL, Headers and give other input properly in webhook. I added Content-Type, x-csrf-token and Authorization in header. Its working fine in Postman. But in Webhook I got this error

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url

Is there any way to resolve this issue?

A 403 Forbidden error usually means the x-csrf-token or session cookies are missing or invalid. In Postman, these are handled automatically, but your webhook needs to fetch them first.

Make a GET request to the SAP endpoint with the header x-csrf-token: Fetch, capture the returned token and cookies, and include them in your POST request. If your webhook can’t handle this two-step process, use a small middleware service to manage the token.

I’ve seen the same issue while working toward my SAP certification, and using Pass4Future helped me understand how SAP handles CSRF and authentication for secure API calls.