{"action":"created","issue":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/265","labels_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/265/comments","events_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/265/events","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/265","id":127152922,"number":265,"title":"Delete Request is no longer been called","user":{"login":"ideadx","id":2369963,"avatar_url":"https://avatars.githubusercontent.com/u/2369963?v=3","gravatar_id":"","url":"https://api.github.com/users/ideadx","html_url":"https://github.com/ideadx","followers_url":"https://api.github.com/users/ideadx/followers","following_url":"https://api.github.com/users/ideadx/following{/other_user}","gists_url":"https://api.github.com/users/ideadx/gists{/gist_id}","starred_url":"https://api.github.com/users/ideadx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ideadx/subscriptions","organizations_url":"https://api.github.com/users/ideadx/orgs","repos_url":"https://api.github.com/users/ideadx/repos","events_url":"https://api.github.com/users/ideadx/events{/privacy}","received_events_url":"https://api.github.com/users/ideadx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T04:42:24Z","updated_at":"2016-01-18T06:01:30Z","closed_at":null,"body":"I updated the plugin and Delete Request is no longer been called when I remove the image?\r\n\r\ndeleteScript: '{!! action('XXX\\JoyController@putSomeMethod') !!}',\r\ndeleteMethod: 'PUT',\r\nfileDeleteOptions: {\r\n_token: \"{!! Session::getToken() !!}\",\r\nid : 1\r\n},"},"comment":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/comments/172433308","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/265#issuecomment-172433308","issue_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/265","id":172433308,"user":{"login":"jackyzhai","id":1086365,"avatar_url":"https://avatars.githubusercontent.com/u/1086365?v=3","gravatar_id":"","url":"https://api.github.com/users/jackyzhai","html_url":"https://github.com/jackyzhai","followers_url":"https://api.github.com/users/jackyzhai/followers","following_url":"https://api.github.com/users/jackyzhai/following{/other_user}","gists_url":"https://api.github.com/users/jackyzhai/gists{/gist_id}","starred_url":"https://api.github.com/users/jackyzhai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackyzhai/subscriptions","organizations_url":"https://api.github.com/users/jackyzhai/orgs","repos_url":"https://api.github.com/users/jackyzhai/repos","events_url":"https://api.github.com/users/jackyzhai/events{/privacy}","received_events_url":"https://api.github.com/users/jackyzhai/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T06:01:30Z","updated_at":"2016-01-18T06:01:30Z","body":"you need to use jquery options, such as:\r\n\r\n                    deleteScript: '/images/delete',\r\n                    deleteMethod: 'POST',\r\n                    fileDeleteOptions: {\r\n                        headers: {\r\n                            'X-CSRF-TOKEN': Cookies.get('X-CSRF-Token')\r\n                        }\r\n                    "}}