|
@@ -199,7 +199,8 @@ serve(async (req) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Build WooCommerce OAuth authorization URL
|
|
// Build WooCommerce OAuth authorization URL
|
|
|
- const callbackUrl = `${url.protocol}//${url.host}${url.pathname}?action=callback`
|
|
|
|
|
|
|
+ // Always use HTTPS for callback URL (WooCommerce requires SSL)
|
|
|
|
|
+ const callbackUrl = `https://${url.host}${url.pathname}?action=callback`
|
|
|
const appName = 'ShopCall.ai'
|
|
const appName = 'ShopCall.ai'
|
|
|
const returnUrl = `${frontendUrl}/webshops?wc_connected=true`
|
|
const returnUrl = `${frontendUrl}/webshops?wc_connected=true`
|
|
|
|
|
|