I have setup an API in the gateway to use Basic Auth. Upon an unsuccessful attempt to authenticate, the response sent back to the client is HTTP 401 with a www-authenticate header as expected. However, this causes a web browser to pop up a login dialog, which ruins the user experience.
Is there a way to prevent the gateway from returning the www-authenticate header, or return a HTTP 201 response? I would prefer to just prevent the header from being returned.
Thanks for your help.