title: how to make a post request to odoo controller from outside odoo?
body: <p>i am trying to get a form to ouside odoo so i built the form with website builder  <a href="https://www.odoo.com/apps/modules/11.0/html_form_builder/" rel="nofollow noreferrer">html_form_builder</a>
  i generated the code of html by the module
  the form generated with action attribute</p>
  
  <pre><code>&lt;form id="odoo_form" method="POST" action="http://localhost:8069/form/insert" enctype="multipart/form-data"&gt;
  ....
  &lt;/form&gt;
  </code></pre>
  
  <p>i extended the html with jquery code</p>
  
  <pre><code>$.ajax(my_form.attr('action'), {
              data: postData,
              processData: false,
              contentType: false,
              headers: {"Accept": "application/json" ,
              }, 
              success: function(data) {
                                      //alert('response data = ' + data);
                                      console.log('Success'); 
                                  },
                                  error: function (data) {
                                  },
      type: 'POST'});
  
  </code></pre>
  
  <p>when you call jquery code 
  the controller will be invoked </p>
  
  <pre><code>@http.route('/form/insert', type="http", auth="public", csrf=False)
      def my_insert(self, **kwargs):
          return self.process_form(kwargs)
  
  </code></pre>
  
  <p>the process_form will as expected </p>
  
  <pre><code>if form_error:
      return json.JSONEncoder().encode({'status': 'error', 'errors': return_errors})
  </code></pre>
  
  <p>i have seen the log the function invoked and make return /
  but i get this error in jquery</p>
  
  <pre><code>POST https://localhost:8069/form/insert net::ERR_FAILED
  </code></pre>