CORS and CORS in SCC

0 Comments

1. What Is CORS? CORS stands for Cross-Origin Resource Sharing. It is a browser security mechanism that controls whether a web page from one origin can access resources from another origin. For SAP Commerce developers, CORS is particularly important when a storefront such as Spartacus makes HTTP requests to SAP Commerce OCC APIs. First, understand […]


spartacus⚿site⚿cart and the “Cart is not anonymous” error after session expiry

0 Comments

Summary After a session expires, the previous user’s active cart id can stay in localStorage (spartacus⚿site⚿cart). When another user logs in, Spartacus tries to merge that cart into the new user’s cart as if it were anonymous, and the backend rejects it with “Cart is not anonymous”. Fixes made: 1. How the key works Where it […]