cancel
Showing results for 
Search instead for 
Did you mean: 

Cart / checkout error POST 404 / Uncaught TypeError

Highlighted

Cart / checkout error POST 404 / Uncaught TypeError

When loading Magento 2.3.4 frontend cart or checkout I get this errors in the browser console:

 

1. XHR POST (example.com/checkout/) 404 Not found

2. Uncaught TypeError: config.response is undefined

 
Both errors show this url: example.com/static/version1602931262/frontend/Magento/luma/sv_SE/mage/requirejs/static.js line 340
 
In debug.log
main.DEBUG: URI '/checkout/cart/'' cannot be accessed with POST method (Magento\Checkout\Controller\Cart\Index) [] []

main.DEBUG: Request validation failed for action "Magento\Checkout\Controller\Cart\Index\Interceptor" [] []
It loads the cart and checkout pages however. But we have issues with payment gateways. Caches, upgrade, compilation, clearing directories etc. tried of course. We cannot find the reason for this?