Server-side Processing, 403 error

Server-side Processing, 403 error

pbercepberce Posts: 15Questions: 2Answers: 0
edited February 2014 in General
I'm trying to setup a table that populates with server-side processing. The page I've created is in an area that requires authentication. I've been able to get it to work when the page and the sAjaxSource file are in the same directory. I'd like to move the sAjaxSource to another directory that is a child to the password protected root. When I do this I get a 403 error, which indicates some type of authentication issue.

I'd done some searching and it sounds like this happens with a cross-site request, but, I wouldn't think it is in this case since it's on the same host and a child of the original page.

This is one of the first times using ajax like this so I am unsure of where to go from here. Can anyone point me in the right direction or let me know if this is or is not possible?

Thanks.

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Might be you need to send authentication information in the Ajax request. See jmanning2k's reply in this SO thread: http://stackoverflow.com/questions/5507234/how-to-use-basic-auth-and-jquery-and-ajax .

    In DataTables 1.9- to use that you would need to write your own fnServerData function - ub in 1.10 you can just pass in the extra parameters - see: http://next.datatables.net/reference/option/ajax

    Allan
This discussion has been closed.