开发者

cross-domain http post without preflight

is it possible to do a cross domain h开发者_开发问答ttp "post" without preflight "options" if i'm not interested in parsing the response?


You can use plain old <form> element to post data to another domain. Its target attribute may ba a name of an invisible <iframe> element. This would prevent reloading the page after form has been submitted. Both form and iframe may be in html source hidden using CSS, or created on-the-fly in JavaScript.


It should be possible if you post text/plain From Fx 4.0 you can use any enctype. https://developer.mozilla.org/En/HTTP_Access_Control

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜