Get HTTP Headers from Dashboard Context?

Product: PowerShell Universal
Version: 1.5.4

Say I have a Header X-MyCustomHeader sent by the client. How do I access that within a dashboard? I didn’t see any relevant variables with Get-Variable in that context. Do I have to initiate an endpoint to basically fetch it and put it in cache to then access it in the dashboard?

We don’t pass the headers to the dashboard but we do pass headers to API endpoints. We could roll that functionality into the dashboard as well.


+1 vote for this feature if possible…

+1 I also need this.

+1 This would make my life SO much easier!

Any news on this @adam ?

You should have access to a $Headers variable as of 1.5.10 -

1 Like