Magento – Add to cart Ajax response 302 in magento 2

addtocartajaxcartmagento2

I am facing some problem regarding product add to cart. Whenever i am trying to add any configurable of simple product to my cart. It is not getting added to cart. Also When i checked in console, I saw an ajax problem in that. Ajax giving 302 error. When I am adding any product to cart.

Please anyone help me to resolve it.

Best Answer

I have changed unsecure and secure url localhost to 127.0.0.1 in table core_config_data and its working fine

Hope this will help someone!

Related Topic