Custom Middleware does not run on POST request, only on GET request. #960
Labels
further information required
existing information is lacking, or feedback is required
question
Issue can be closed by providing information
I am using Crow 1.2.
I have created the following middleware :
It is designed to reflect the host origin, similar to setting '*' but it works with the browser.
I am setting the app with this custom Middleware like this :
For get request I have no problem and I also get the logs from my app.
Here's the response headers :
However for POST requests I get this :
And I don't get any logs from my app, so the middleware was actually not triggered. Here's how I register my routes :
The text was updated successfully, but these errors were encountered: