Csrf errors ajax endpoints