adamhalasz/diet

Header response cannot be set on GET from footer middleware

oscarr-reyes opened this issue · 2 comments

Greetings

I am currently working on a module implementation for CORS and i just found that GET method does not have the headers set from the Footer middleware, this happens on all routes.. and this does not happen on other methods

is there any progress for this bug fix?

Turns out the happens because on footer middleware the response is already being sent, and therefore the headers are baked, so setHeaders function is disabled in host API.. maybe find a workaround on this issue or disable headers functions for footer middleware