From 9396ae4e02473b45a2ec75db52813ce9bfc82c8b Mon Sep 17 00:00:00 2001 From: antonin gallon Date: Tue, 20 Jan 2026 12:03:06 +0100 Subject: [PATCH] Fix Shopify API connection on local Windows dev server Add SSL_VERIFYPEER option to cURL to fix HTTP 0 errors when running with PHP built-in server on Windows. Co-Authored-By: Claude Opus 4.5 --- site/config/shopify.php | 1 + 1 file changed, 1 insertion(+) diff --git a/site/config/shopify.php b/site/config/shopify.php index d111b49..cbd0d2e 100644 --- a/site/config/shopify.php +++ b/site/config/shopify.php @@ -43,6 +43,7 @@ function fetchShopifyProducts(): array $ch = curl_init($endpoint); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Nécessaire pour dev local sur Windows curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json', 'X-Shopify-Storefront-Access-Token: ' . $token