I have encountered something that i have no clue how to solve. Managing to narrow down what the issue was is a win on its on but still... Basically i have a class that implements AbstractPdfView and I use it to generate documents. After that I return it to the client and its downloaded. It is all good when i run it locally, but when i deploy it, it directly goes to 500, (faild)net::ERR_INVALID_RESPONSE. Here is the response as well:
H/1.1 500 Server: nginx/1.14.1 Date: Thu, 02 May 2019 19:18:40 GMT Content-Type: text/html;charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Pragma: private Cache-Control: private, must-revalidate Content-Disposition: attachment; X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block X-Frame-Options: DENY
I am not sure what else to provide, codewise... Question is - is there any protection over receiving files as responses? Could it be that the file is directly downloaded and not through a window where you specify where to save it? Thanks.