Security
Security
STOREFRONT_API_TOKENexists only on the server, never with aNEXT_PUBLIC_prefix.- Session cookies are
HttpOnly,Secure,SameSite=Lax. - Route Handlers that change data check the
Originheader. X-Storefront-Client-IPcomes from a header your infrastructure controls.- The storefront domain is not in
strapi::corsfor the storefront routes.
Store setup
Store setup
- The storefront URL is set and matches your domain.
- Stripe keys are live, the webhook points at Strapi and subscribes the seven events.
- The success and cancel paths match your pages.
- The email templates link to your account pages, in every language.
- Markets and shipping methods cover the countries your checkout offers.
Flows to test
Flows to test
- Add to cart without a cookie creates one session, not one per page view.
- A quote with a sold out line shows the problem and keeps the cart.
- A code that needs a verified email walks through the 6 digit code.
- A changed price during checkout shows the new total (
TOTAL_CHANGED). - A double click on “Place order” creates one order.
- The success page handles
UNPAID,PROCESSINGandPAID. - Login merges the guest cart. Logout keeps the cart on the account.
- A password change keeps the customer logged in on this device and logs out the others.
- A revoked session drops the cookie and the customer continues as a guest.