Reputation: 21
The integration with magento was done and the categories and products are showing up. However, the shopping cart icon is missing and the below errors were observed :
POST http://localhost:4502/magento/graphql 403 (Forbidden) (anonymous) @ react-components.js:16
react-components.js:16 Error: Network error: Unexpected token < in JSON at position 0
react-components.js:16 Uncaught (in promise) Error: Network error: Unexpected token < in JSON at position 0
Upvotes: 1
Views: 167
Reputation: 226
Cart will not be even visible until and unless you do not setup a dispatcher as shown here in this video. The mini cart is actually a react component which directly communicates with Back-end Magento and to avoid CORS issue you have to set up proxy through a Dispatcher.
Upvotes: 1