Webhooks with flask localhost

1 0 0

Hello, I am currently using flask to build a basic web app to handle webhooks sent from my shop.
When hosting my flask app I am setting the host = '' to allow connections from across the network.
The problem I'm having is when I try to set the URL for these webhooks on Shopify I receive an error that the address is not allowed.
Here is what the webhook url looks like


I am also using vs code in case anyone knows of an extension that will assist me in this issue,


Reply 1 (1)

Shopify Staff
1322 217 457

Hi @JoeV2 👋


As noted in the webhook limitation docs here, a localhost URL is not a HTTPS endpoint to receive webhooks. One option would be a tool like ngrok to create a secure tunnel to your localhost. 


Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog