Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi all,
To fill in the GDPR mandatory webhooks section, I need to put 3 endPoints which return 200.
My endPoints need token authorization, where can I specify it ?
Thanks for your assistance
Solved! Go to the solution
This is an accepted solution.
Hi Dlornage,
The GDPR webhooks are supposed to be publicly accessible, meaning they should respond with a 200 status without needing any kind of authorization. This is because when Shopify sends a request to these endpoints, it's not going to include an authorization token.
If your endpoints require authorization and you cannot change this, one potential workaround could be to create a proxy endpoint for each that doesn't require authorization. These proxy endpoints would then forward the request to your actual endpoints, including the necessary authorization. But this would need to be handled on your server side, not through Shopify.
Hope this helps,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
This is an accepted solution.
Hi Dlornage,
The GDPR webhooks are supposed to be publicly accessible, meaning they should respond with a 200 status without needing any kind of authorization. This is because when Shopify sends a request to these endpoints, it's not going to include an authorization token.
If your endpoints require authorization and you cannot change this, one potential workaround could be to create a proxy endpoint for each that doesn't require authorization. These proxy endpoints would then forward the request to your actual endpoints, including the necessary authorization. But this would need to be handled on your server side, not through Shopify.
Hope this helps,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
Thank you Liam, perfectly clear !