403 Forbidden error means that the server is refusing to show you the requested page. This is usually because you're trying to access a resource that you don't have permission to view.
To fix this, you'll need to make sure you have a valid Shopify Storefront access token. You can either create a new one or use an existing one.
If you don't have a token yet, you can create one by following these steps:
- Log in to your Shopify admin and go to Apps.
- Click Manage private apps.
- Click Create a new private app.
- Enter a name and contact email for your private app.
- Under Admin API, select which permissions you want to grant the app.
- Click Save.
Once you have a token, you can use it to access Shopify's Storefront API. Simply pass it in as a header or query parameter with your API requests.
Here's an example of how to do this using cURL:
curl "https://your-store.myshopify.com/admin/api/2019-10/products.json" \
-H "X-Shopify-Storefront-Access-Token: your-token"