Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

WebView, 405 when making a DELETE request

$
0
0

Application type: mobile Titanium SDK: Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.GA Platform & version: Android 4+ Device: Android GenyMotion Galaxy S3 4.2.2 Host Operating System: Windows 8.1 Titanium Studio: Titanium Studio, build: 3.3.0.201407100905

I have a WebView which is serving a locally hosted Backbone application using .NET 4.5 WebAPI for data management. The WebAPI endpoints are shared by our website. From the application I'm able to make GET and POST request but when I make a DELETE request I get a 405 method not allowed - Allow GET, PATCH?

The same code runs the website and I can confirm the DELETE is successful so the problem is only with the app. I've tried explicitly setting the verbs in the ExtensionlessUrlHandler-Integrated-4.0 handler but this had no effect.

Looking at fiddler the only difference I can see is the Origin, 'file://' for the app while the website shows our domain which is also where the WebAPI endpoints are. If this was a problem then I'd expect to see a cross origin error, also you wouldn't expect GET and POST requests to work.

Any suggestions would be very helpful.


Viewing all articles
Browse latest Browse all 8068

Trending Articles