on 08-26-2017 12:19 AM
Hi Team,
I did try making POST call for XSJS service, here request is failing with 403-forbidden issue, it is not the case with GET operation. Do we need any additional configuration for my service in order to enable post protocol?
FYI, am doing this through postman.
Please suggest. Thanks in advance.
Regards,
Nagaraju
I assume that in your application access file (.xsaccess) the "prevent_xsrf" flag is set to true to secure your application against cross-site request-forgery attacks. In that case you need to determine a CSRF token before you do the post, to be able to pass the token in the post request header (as X-CSRF-Token).
For test reasons you can set the flag in the .xsaccess file to false, but in general it is not recommended to do that, especially if your services do write operations.
For details please check the documentation here.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.