Make Chrome display pages even on 500 or 404 codes (behave like Firefox)

后端 未结 2 975
春和景丽
春和景丽 2021-02-06 00:34

We\'re developing a new site in Symfony. When Symfony encounters an error, such as a \"no route found\", and debug is set to true, it not only outputs a 404 code, it actually s

2条回答
  •  独厮守ぢ
    2021-02-06 01:01

    There is a bug report raised for this:

    Issue 1695: Chrome needs option to turn off "Friendly 404" displays

    According to the comments on that issue, if the server error page is more than 512 bytes, then it gets displayed correctly.

    That said, I can't actually reproduce the problem, so I'm not sure if that workaround actually fixes it.

提交回复
热议问题