You can use for example loadBeforeSend event handler of the jqGrid defined as the following:
loadBeforeSend: function(jqXHR) {
jqXHR.setRequestHeader("Authorization", 'Basic YWRtaW5AZGVmYXVsdC5jb206YWRTwa6=');
}
More Related Contents:
- Using jqGrid’s inline-editing with RESTful urls?
- How to return AJAX response Text? [duplicate]
- When to use valueChangeListener or f:ajax listener?
- ASP.NET MVC controller actions that return JSON or partial html
- Problems with jQuery getJSON using local files in Chrome
- WebSockets protocol vs HTTP
- How do you scrape AJAX pages?
- GET vs POST in Ajax
- jQuery Mobile does not apply styles after dynamically adding content
- How do I detect if a user has got to a page using the back button?
- Bootstrap 3 – How to load content in modal body via AJAX?
- How to check if jQuery.ajax() request header Status is “304 Not Modified”?
- UIWebViewDelegate not monitoring XMLHttpRequest?
- How does Google Instant work?
- How to exclude child component in ajax update of a parent component?
- Set-Cookie on Browser with Ajax Request via CORS
- jQuery mobile $(document).ready equivalent
- Setting processData to false in jQuery breaks my AJAX request
- ViewExpiredException not thrown on ajax request if JSF page is protected by j_security_check
- Are different ports on the same server considered cross-domain? (Ajax-wise)
- Can you update an h:outputLabel from a p:ajax listener?
- Ajax Cross Domain Calls
- java.lang.IllegalStateException: CDATA tags may not nest
- Redirecting after Ajax post
- Ajax response inside a div
- How to store to browser auto-complete/auto-fill when using AJAX calls
- Conditionally provide either file download or show export validation error message
- phonegap: cookie based authentication (PHP) not working [webview]
- Angular 2 HTTP Progress bar
- Update div using ajax.beginform inside asp mvc view