After Disabling/Enabling the monitoring of a task, page refresh is not working on the browser (tested on Firefox).
Firefox showing a popup saying that it must resend the information sent before.
So refreshing functionality is not working after any post request !
If we click on try again button we see the 403 forbidden page with cookie check failed. If we click on Cancel button we see an empty page or Firefox goes into offline mode. I send images, for popup, for cookie validation field 403 forbidden.
The problem is that after clicking enable/disable button, monit makes a POST request. Webpage rendered after post request cannot be refreshed normally…
Solution is to redirect the page after the post request with response code 303 (known as Post/Redirect/Get, described here: https://en.wikipedia.org/wiki/Post/Redirect/Get).
window.location = window.location.href;