upstash / qstash-js

Message queue for serverless
https://docs.upstash.com/qstash
MIT License
160 stars 15 forks source link

does sending header to destination supported? #12

Closed rebaz94 closed 1 year ago

rebaz94 commented 1 year ago

Hi. I want to send custom header to my destination but after checking the logs, it seems that does not sent anything. Also I can't find a way to set basic auth for testing because Authorization should be the Qstash token.

chronark commented 1 year ago

You can check how to send custom headers here

why do you need basic auth? qstash does not work with basic auth

rebaz94 commented 1 year ago

@chronark Thank you for the link.

I just tested it and work perfectly.

'Upstash-Forward-My-Header': 'rebaz'

qstash does not work with basic auth

I used it only for testing with ngrok, and passing basic auth in header like ngrok http --basic-auth="user:password" 4000

and then just forward the basic auth to ngrok make it work.

'Upstash-Forward-Authorization': 'Basic dXNlcjpwYXNzd29yZA=='
rebaz94 commented 1 year ago

I just close the issue. Thank you for your quick response.