I have configured an HTTPS adapter as sender in my integration artifact. However, I can only send HTTP GET message to the configured endpoint. When I try and send an HTTP POST/PUT/PATCH I get a 403 unauthorized error.
Using HTTP GET to create data in a backup system just isn't right. How do I allow HTTP POST/PUT/PATCH operations in the HTTPS sender adapter?
Request clarification before answering.
Hi Iddo
By default, an HTTPS sender channel has CSRF protection enabled which protects against modifying calls such as POST, PUT, PATCH, DELETE.

You have two options:-
1) If you feel that CSRF protection is not necessary for your endpoint, then you can uncheck it
2) However, if CSRF protection is necessary, then your calling system needs to implement a two step approach - first call to retrieve CSRF token, second call (actual call) to POST/PUT/PATCH the data passing in the token from the first call. A missing token is the cause of your 403 error. Coincidentally, vadim.klimov just wrote an excellent blog post on this CSRF issue.
Regards
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, that's the missing piece. I read about the new CSRF functionality, but I think SAP poorly explains this part.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.