Open mdewart-hummingbird opened 6 months ago
I don't think this is needed anymore. There was an issue with ConnectWise's proxy.
I'm still seeing this issue pointing at eu.myconnectwise.net, error is calling for -AllowInsecureRedirect switch. What was the fix / can this be added in anyway?
I don't think this is needed anymore. There was an issue with ConnectWise's proxy.
This is very much needed, depending on your location and other CW factors we see this issue all the time
PowerShell 7 changed the default behavior of Invoke-WebRequest. requiring a minor change when running in PS7 for some data to get returned when the API redirects to another URI for POST results (such as creating new tickets). Other than some formatting changes, this just checks $PSVersionTable.PSVersion.Major -ge 7, and adds the -AllowInsecureRedirect parameter if needed.