Conncetor builder 406 error Redirects are unsupported for custom connectors

How to workaround Error 406: Redirects are unsupported for custom connectors?

Issue Description

For custom connectors built via Connector Builder, we throw a 406 error whenever a provider returns a "Location" in the header (3xx status) that is a redirect. This was implemented due to security reasons. This is to prevent security issues for untrusted API providers.

Resolution

Workaround: If the provider is trusted and reliable, create a support case so that our engineering team can manually disable the flag for that connector to allow redirects. Or add a flag in the connector under "Authentication": allow.automatic.redirect: true