Commented out hardcoded pagination arguments on resource path and added csrftoken header in jquery ajaxsetup