We’ve created the backend API, but it fails when called from the Shop Minis app. However, it works correctly in Postman and when tested in the Chrome browser during debugging. Please find the API cURL below for your reference.
cURL: curl --location ‘https://minis-shop-the-looks-backend-alpha.vercel.app/api/apikey’ \
–header ‘sec-ch-ua-platform: “macOS”’ \
–header ‘Authorization: Bearer user-token-123’ \
–header ‘Referer: http://192.168.0.117:5173/’ \
–header ‘User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36’ \
–header ‘sec-ch-ua: “Google Chrome”;v=“143”, “Chromium”;v=“143”, “Not A(Brand”;v=“24”’ \
–header ‘Content-Type: application/json’ \
–header ‘sec-ch-ua-mobile: ?0’
API call in the shop minis app:
NOTE: I have added trusted_domains in the manifest file, but still not working.
