How to remove Authorization header from GET request in module

Hi, I am trying to add a GET request in a module in order to download a file binary.
The file is hosted in S3 bucket, which does not accept “Authorization” header, unless its value is " " or “–”.
But I am not able to modify the AUthorization header from within the module : it always defaults to the apiKey paramater from my connection.
I have tried this :
“headers”: {
“Authorization”: “{{undefined}}”
},
Also this :
“headers”: {
“Authorization”: " "
},
And this :
“headers”: {
“Authorization”: “–”
},

But Make still sends the apiKey parameter to S3. Here is what I have in my connection :
“headers”: {
“Authorization”: “{{parameters.apiKey}}”
},

Anyone knows how to prevent this header parameter from defaulting to the connection value ?

Welcome to the Make community!

You should use a plain HTTP “Make a request” module.

Screenshot_2024-02-25_170212

2 Likes

thank you @samliew but I would like to avoid asking users to add the http module to their scenario because the download step can be done within my own module. I just need to remove the Authorization header, should not be that hard ! :slight_smile:

Try adding a new “No auth” empty basic connection and make it the only connection in your module.

2 Likes

Thank you but the first part of the module requires auth. Is there a way to use one connection for the 1st API call in the module and then another connection for the GET file step ?

You might need to split it into two modules then.

2 Likes