on 07-14-2018 6:44 PM
Hi All,
I have created RESTful API and have deployed the Spring boot application in SAP CF. I am able to access those APIs from POSTMAN but when I try to consume those API in another CF RestClient Application Application I am getting error and I am not able to use the same API URL in my new Application.
Being a starter in SAP CF , I think I am missing something here.
Can someone help me here about how to use those APIs?
Thanks in advance
Amitansu
the possible issues are:
1) cross domain issue (most likely cause)
2) POSTMan sends additional headers that your external application is not sending - have you tried doing a FETCH first (to get the x-CSRF token ?) then using that as your authentication token - I have encountered this scenario even on an onpremise system when the serving api doesnt recognize the consuming request
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.