Include X-ClientTag header

New Contributor

I am working on react based SPFX solution and using PnP module for retrieving list data. IT Deployment teams asked me to must include X-ClientTag header on SharePoint client side calls.  

I am using below line of code for retrieving date.

 

 

import { sp } from "@pnp/sp";
sp.web.lists.getById(<list id>).items.get(); //sample line

 

Let me know if we can add X-ClientTag header with above code?

 

 

 

0 Replies