porsager / wright

🚀 Work Fast Work Wright
Do What The F*ck You Want To Public License
178 stars 15 forks source link

All Ajax POST requests fail with 2.x releases #41

Closed shofetim closed 4 years ago

shofetim commented 4 years ago

When using the 2.x releases (2.0.0-beta to 2.0.0-rc8) AJAX post requests stay in "pending" status indefinitely.

Minimal case to reproduce:

<html>
  <body>
    <button id="post">Click to test post</button>
    <script src="./test.js"></script>
  </body>
</html>
document.getElementById("post").onclick = () => { fetch("./anything", {method: "post"}); }
wright index.html --debug 1

Results

image
porsager commented 4 years ago

Sorry for the bad response time.

Great repro case! Fixed in 2.0.1