Skip to content

Instantly share code, notes, and snippets.

View rbraband's full-sized avatar

Roland Braband rbraband

  • Nordmann, Rassmann GmbH
  • DE - Hamburg
View GitHub Profile
@rbraband
rbraband / gist:0ccc52410e791177c1739780ffb3dde4
Created December 14, 2017 16:08 — forked from 7kfpun/gist:a8d1326db44aa7857660
Remove the X-Requested-With header from ajax requests
http://stackoverflow.com/questions/3372962/can-i-remove-the-x-requested-with-header-from-ajax-requests
jQuery.ajax({
url: yourAjaxUrl,
// 'xhr' option overrides jQuery's default
// factory for the XMLHttpRequest object.
// Use either in global settings or individual call as shown here.
xhr: function() {
/*
* Simple IBAN Format-Plugin
* Easily format IBAN for display use. Replace IBAN inline in a document, or return a formatted IBAN for other uses.
* Created based on the idea of https://github.com/customd/jquery-number
*/
(function ($) {
// jQuery plugin definition
"use strict";