[webkit-help] Only GET, HEAD and POST methods available with XMLHttpRequest

Ben Short ben at benshort.co.uk
Thu Mar 28 04:19:28 PDT 2013


Hi,

I've built webkit from source revision 146912. My web app uses Ext JS to do
Ajax Rest requests. This means that it needs to use GET, PUT, POST and
DELETE methods.

When I run my web app in the webkit build it can only send GET and POST
methods.

By loading this page http://www.mnot.net/javascript/xmlhttprequest/ I get
the following results...

Testing Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534+ (KHTML, like
Gecko)

What Methods Are Available?

GET: success
Get: fail (Method sent: GET)
HEAD: success
POST: success
PUT: fail (Method sent: GET)
DELETE: fail (Method sent: GET)
TRACE: fail (Error: Error: SecurityError: DOM Exception 18)
FOO: fail (Method sent: GET)
Foo: fail (Method sent: GET)

If I load the same page in chorome I get the following results...

Testing Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like
Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22

What Methods Are Available?

GET: success
Get: fail (Method sent: GET)
HEAD: success
POST: success
PUT: success
DELETE: success
TRACE: fail (Error: Error: SecurityError: DOM Exception 18)
FOO: success
Foo: success

I'm not sure why this is. Is it fixable? Am I missing a configuration
option?

Thanks

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20130328/50b8212a/attachment-0001.html>


More information about the webkit-help mailing list