Skip to content

Commit

Permalink
Add correct accept header to ajaxSubmit to prevent 406 error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van den Nieuwenhuisen committed Jul 24, 2020
1 parent dbd9087 commit ca3d5c3
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -279,6 +279,9 @@ This code manages the many-to-[one|many] association field popup
jQuery(form).ajaxSubmit({
url: url,
type: type,
headers: {
Accept: 'application/json'
},
data: data,
success: function(data) {
Admin.log('[{{ id }}|field_dialog_form_action] ajax success');
Expand Down

0 comments on commit ca3d5c3

Please sign in to comment.