cli: [Bug]: `/cart/add` 404ing in local development

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Other

Expected behavior

When adding a variant to the cart, the cart should be updated to include the new item

Actual behavior

When adding an variant to the cart, the CLI is showing a 404 error for the /cart/add endpoint.

Verbose output

Verbose output
• 09:19:58 Request »    GET 404 /cart/add/41431326228614 554ms

Reproduction steps

  1. Launch the CLI with shopify theme dev
  2. Try to add a variant to the cart manually by entering http://127.0.0.1:9292/cart/add/{{ variant_id}}

Operating System

Mac OS Sequoia 15.3.2

Shopify CLI version (shopify --version)

3.79.0

Shell

zsh

Node version (run node -v if you’re not sure)

v23.11.0

What language and version are you using in your application?

Shopify Liquid

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 16 (1 by maintainers)

Most upvoted comments

Same problem with version 3.79.0.

The only temporary fix I’ve found is to delete all cookies on 127.0.0.1. 🤷‍♂️

Encountering the same issue on our local env with Shopify CLI

Image