在 Stripe Dashboard Webhooks 端点中添加授权请求 header

Adding Authorization request header in Stripe Dashboard Webhooks endpoint

配置的时候有没有添加授权请求header Webhook endpoint in Stripe Dashboard?

在 CLI 中,在 stripe listen 命令上添加 -H "Authorization: ..." 即可。只是想知道 Stripe 仪表板上是否也提供此功能。

Stripe 目前支持向您的服务器发送 webhook 的唯一身份验证是 URL 中的 Basic Auth,例如您将在仪表板中添加 URL 作为 :

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

无法指定 headers,这是 stripe-cli 支持的,用于协助本地开发,但不是一般 webhook 端点配置的一部分。