{"action":"closed","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/571","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/571/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/571/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/571","id":82798156,"number":571,"title":"Append parameters to $.post on image upload with $.ajaxPrefilter not working","user":{"login":"agarhy","id":1887480,"avatar_url":"https://avatars.githubusercontent.com/u/1887480?v=3","gravatar_id":"","url":"https://api.github.com/users/agarhy","html_url":"https://github.com/agarhy","followers_url":"https://api.github.com/users/agarhy/followers","following_url":"https://api.github.com/users/agarhy/following{/other_user}","gists_url":"https://api.github.com/users/agarhy/gists{/gist_id}","starred_url":"https://api.github.com/users/agarhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarhy/subscriptions","organizations_url":"https://api.github.com/users/agarhy/orgs","repos_url":"https://api.github.com/users/agarhy/repos","events_url":"https://api.github.com/users/agarhy/events{/privacy}","received_events_url":"https://api.github.com/users/agarhy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-30T12:18:58Z","updated_at":"2015-06-04T13:17:02Z","closed_at":"2015-06-04T13:17:02Z","body":"Hi, I'm trying to append CSRF tokens to image upload post, but seems $.ajaxPrefilter is not working on image upload.\r\n\r\nhere is the filter i use to append params to all $.post requests but seems not called on image upload\r\n\r\n```javascript\r\n$.ajaxPrefilter(function (options, originalOptions, jqXHR) {\r\n    if (options.type.toLowerCase() === \"post\") {\r\n        // add leading ampersand if `data` is non-empty\r\n        options.data += options.data ? \"&\" : \"\";\r\n        // add _token entry\r\n            options.data += csrf_token_name + \"=\" + csrf_token_value;\r\n    }\r\n});\r\n```\r\nAny idea how this can be accomplished ?"}}