jQuery UI Widgets Forums Plugins Data Adapter Basic auth

This topic contains 2 replies, has 1 voice, and was last updated by  dzakharov 6 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Basic auth Posts
  • Basic auth #29754



    How to retrieve data using http basic auth?
    I tried to do this:
    1. put the user and pass in the url, like this http://user:pass@www
    2. added a line in the Authorization header
             dataAdapter = new $. jqx.dataAdapter (source, {
                 beforeSend: function (xhr) {
                     xhr.setRequestHeader (‘Authorization’, ‘Basic XXXXXXXXXX=);

    No еrrors.
    Request from the browser is not going away.

    How to correctly set the auth with dataAdapter?

    Basic auth #29755


    does not work

    3. dataAdapter = new $.jqx.dataAdapter(source, {
    beforeSend: function (jqXHR, settings){
    settings.username = ‘user’;
    settings.password = ‘pass’;

    • This reply was modified 6 years, 9 months ago by  dzakharov.
    Basic auth #29768


    Reboot all, and point 2 working

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.