CakePHP ajax CSRF token mismatch
问题 I am making an ajax request with Csrf component load in my AppController However I get the error {"message":"CSRF token mismatch.","url":"\/module_slides\/loadDeck.json","code":403} Here is the request header POST /module_slides/loadDeck.json HTTP/1.1 Host: www.hotelieracademy.com Connection: keep-alive Content-Length: 18 Origin: https://www.hotelieracademy.com X-XSRF-TOKEN: 3d3901b1de9c5182dce2877c9e1d9db36cdf46a6 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36