Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82111

REST-Interface does not send PUT/DELETE but OPTIONS

$
0
0
Hi there,


I have the following code which should trigger different http methods for each action:
    editor = new $.fn.dataTable.Editor( {
        "ajaxUrl": {
            "create":   "POST http://uri/app.servers.ServerController?format=DataTables",
            "edit":      "PUT http://uri/app.servers.ServerController?format=DataTables",
            "remove": "DELETE http://uri/app.servers.ServerController?format=DataTables",
        },

The requests for edit and remove do not send the PUT or DELETE request method but OPTIONS which seems to be wrong from my point of view. How can I change the OPTIONS method into PUT or DELETE request methods?


Regards

Viewing all articles
Browse latest Browse all 82111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>