为什么我的HTTP请求在表单中工作而不是AJAX?

时间:2016-08-17 18:57:00

标签: jquery ajax http html-form postman

我正在使用“Woofoo”表单作为服务,他们给了我这段代码:

<form id="form1" name="form1" accept-charset="UTF-8" enctype="multipart/form-data" method="post" no validate action="https://kingofthestack.wufoo.com/forms/z116los31o2hqhx/#public">
  <input id="Field1" name="Field1" type="email"/>
  <textarea id="Field4" name="Field4"></textarea>
  <input id="saveForm" name="saveForm" type="submit" value="Submit"/>
  <textarea name="comment" id="comment"></textarea>
  <input type="hidden" id="idstamp" name="idstamp" value="my-secret-key" />
</form>

它适用于邮递员,但当我在jQuery中使用postman生成的代码时,我得到Origin null is not allowed by Access-Control-Allow-Origin.

0 个答案:

没有答案