Getting Error:- HTTP Status 403 - Expected CSRF token not found. Has your session expired?

vjbalotia
Giga Contributor

Hello,

I am doing an integration where i need to send some information from service now instance to customer instance for that i am using REST API,

and put method.

When I testing the method i am getting an error with 403 HttpStatus code and this error is Expected CSRF token not found. Has your session is expired.

I not able to understand this is Service now side error or customer side error.

Please suggest me if you have any solution for this or if you have any idea from where this CSRF token coming from?

find_real_file.png

5 REPLIES 5

Chuck Tomasi
Tera Patron

Hi Vijay,



Sounds like you need to set up the proper cross site REST functionality. You can read more here.



REST API CORS support


vjbalotia
Giga Contributor

Hi Chuck,



Thanks for your suggestion, I have checked the CORS functionality there is no CORS rule available as of now,


and i also want to know does it make sense if i create new CORS rule in multi tenant   instance, and how it is related to 403 CSRF token error


Unfortunately I don't have answers for those. My knowledge of CORS and cross site integrations like this is limited at this point. If nobody else has an answer, reach out to support.



HI Service Portal - ServiceNow


Contact Support | ServiceNow


vjbalotia
Giga Contributor

Thank you very much Chuck for your suggestion.