Currently one is unable to add custom headers to the request object in a clean manner.
This functionality can be useful in situations where your Hudu instance is hidden behind Cloudflare Zero Trust. In this instance, the developer needs to add Client ID and Client Secret headers to each request to pass authentication through the tunnel.
I've gone ahead and implemented two new methods, New-HuduCustomHeaders and Remove-HuduCustomHeaders to accommodate this requirement.
Let me know if there are any issues or concerns you have.
Currently one is unable to add custom headers to the request object in a clean manner.
This functionality can be useful in situations where your Hudu instance is hidden behind Cloudflare Zero Trust. In this instance, the developer needs to add Client ID and Client Secret headers to each request to pass authentication through the tunnel.
I've gone ahead and implemented two new methods,
New-HuduCustomHeaders
andRemove-HuduCustomHeaders
to accommodate this requirement.Let me know if there are any issues or concerns you have.