#tounka

1 messages · Page 1 of 1 (latest)

mellow basinBOT
boreal ibex
#

Would you like to bypass Webhook signature validation or fix signature validation error?

#

For fixing signature validation error, you'd need to ensure that the request body is in raw. In addition, the Webhook secret must be set correctly based on the endpoints used (local or endpoints set in Dashboard)

solemn hawk
#

fix signature validation error

#

i'm getting this error stripe webhook had no valid signature even though i can see the header set

boreal ibex
#

Could you share your code about handling Webhook events?

solemn hawk
#

so for context, i'm able to handle events fine from my back-end. currently i'm trying to proxy the stripe event with a nextjs function to my back-end.

#

more specifically how can i proxy this request without messing with the event so the signature doesn't complain

#

i don't have access to the code atm

boreal ibex
#

so for context, i'm able to handle events fine from my back-end
Do you mean that you don't get invalid signature error without proxy?

solemn hawk
#

that's correct

boreal ibex
#

I see! It seems like the Stripe-Signature header is either missing or modified during the proxy

#

Could you double check the value of Stripe-Signature is the same with and without proxy?

solemn hawk
#

will do. thank you