Adding Authorization request header in Stripe Dashboard Webhooks endpoint

Viewed 572

Is there anyway to add Authorization request header when configuring

Webhook endpoint in Stripe Dashboard?

In CLI, adding the -H "Authorization: ..." on stripe listen command does the trick. Just wondering if this is also available on the Stripe Dashboard.

1 Answers

The only authentication Stripe supports for sending webhooks to your server right now is Basic Auth in the URL, so e.g. you'd add the URL in the Dashboard as :

https://username:password@example.com/webhook-endpoint

There's no way to specify headers, that's something stripe-cli supports for assisting in local development but not part of the general webhook endpoint configuration.

Related