Skip to content Skip to sidebar Skip to footer

Dart Httpserver Httpresponse Redirect

I am using dart:io's HttpServer to implement a web server and I am trying to redirect to a page after using JavaScript to send a DELETE request. Below is a minimal example of what

Solution 1:

Using 303 instead of 302 will ensure the redirect is a GET request instead of a DELETE request, however it turns out it is not possible to make a HTTP request from javascript that redirects because of https://github.com/whatwg/fetch/issues/763.


Post a Comment for "Dart Httpserver Httpresponse Redirect"