We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Hiding Sensitive data from HTTP header, while using it.

Not applicable

Hi All,

 

I need some guidance on hiding some values when we give in HTTP Header like some authentication key or subscription key. How can we do that and use them also.

somu_pandey_0-1708506202045.png

 

Please guide 

Thanks

 

2 REPLIES 2

Ryan Duce
Tera Guru

When calling your REST API, use the setRequestHeader method. You can then use your script to securely provide the secret value as a header from wherever you're storing it.

Sohail Khilji
Kilo Patron

Hi @Community Alums ,

 

1. keep your value in sys_propery and try to call it in your HTTP header , Thats the way to go.. 

2. Also see if you can create variable substution to ${value} > and see if you can call system propery over it.

 

I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect