Results 1 to 2 of 2

Thread: [Classic 6.5.3]How can I add extra request header in standardsubmit ?

  1. #1
    Sencha Premium User
    Join Date
    Jun 2017
    Location
    China
    Posts
    35
    Answers
    1
    Vote Rating
    1
      0  

    Default [Classic 6.5.3]How can I add extra request header in standardsubmit ?

    I wan to add extra request header in the standardsubmit 。
    For Ajax requests,the code below works fine.:
    Ext.Ajax.on('beforerequest', function (conn, request) {
    request.headers = {'X-CSRFToken': Ext.util.Cookies.get('csrftoken')};
    }
    }, this);

    However,for standard form submit, this code is useless.

  2. #2
    Sencha User
    Join Date
    Oct 2018
    Location
    Bengalore
    Posts
    15
    Answers
    4
    Vote Rating
    4
      0  

    Default

    Hi,

    Check below URL, it might solve your problem:

    https://www.sencha.com/forum/showthr...th-Form-Submit

Similar Threads

  1. Replies: 3
    Last Post: 26 Apr 2018, 4:30 AM
  2. Replies: 1
    Last Post: 13 Jan 2016, 10:32 AM
  3. Extra params not sent for create api request
    By nikolay.bobrovskiy in forum Ext 5: Bugs
    Replies: 2
    Last Post: 22 Dec 2014, 6:22 AM
  4. Replies: 4
    Last Post: 22 Jun 2012, 10:36 PM
  5. extra node in tree - classic asp question
    By concep86 in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 9 Feb 2008, 8:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •