Can I limit access to a ServiceNow-scripted REST API to a specific IP address?

Vivek Verma
Mega Sage
Mega Sage

I have already implemented the API Access policy, but it seems that the IP range filter is not working. 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

a last option is to narrow down the processing to the request's source IP in your script and then decide accordingly:

var sourceIp = request.headers["x-forwarded-for"];

Maik

View solution in original post

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi

a last option is to narrow down the processing to the request's source IP in your script and then decide accordingly:

var sourceIp = request.headers["x-forwarded-for"];

Maik