cancel
Showing results for 
Search instead for 
Did you mean: 

403 forbidden error on mobile

Former Member
0 Kudos

hi all,

I am consuming odata services through SMP and netweaverGW and it is working well on the browser but on mobile it gives 403 forbidden error while updating (PUT Opration).i can get and update data on the browser and rest client but on mobile, i can only get the data and am unable to update it.

Please help.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I haven't tried it with SMP 2.3

can you try by executing this URL in REST client:

http://smpserver:8080/applicationid

method: GET

Header: authorization: smpuserid and password

X-SUP-APPCID : <connection id value returned while registration>

Do you get 200 OK status code?

Please share the screenshot.

Former Member
0 Kudos

Hi Jitendra,

I have tried it in the REST client and getting 200 OK status code. I am passing authorization and X-SUP-APPCID in header. I can see the device on SCC. The problem comes when I run it on the device.

Thank You

midhun_vp
Active Contributor
0 Kudos

Hi Abhash,

Make sure you are passing the X-CSRF-TOKEN while calling PUT operation. You have to make a GET request to get the TOKEN to do a PUT operation.

Regards, Midhun

SAP Customer Experience Group - CEG

Former Member
0 Kudos

Hi Midhun,

I am passing the X-CSRF-TOKEN  while calling the PUT operation. Do I need to pass cookies too?

Thanks

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you are working on SMP 3.0 SP03 PLxx then you have to pass returned cookies as well in the header along with X-CSRF-TOKEN and SMP-APPCID.

Check this discussion

Regards,

JK

Former Member
0 Kudos

Hi jitendra,

Thanks for the reply.

I am using SMP 2.3 and I am passing X-CSRF-TOKEN as well as APPCID and still getting the 403 forbidden error. The device is getting registered but PUT operation gives this 403 error. Please help.

Thanks

jangold
Explorer
0 Kudos

Hi Abhash,

  • how do you send the request from mobile?
  • are you using SAP Mobile Platform SDK?
  • what is mobile OS?

Regards,

Jan Gold