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

后端 未结 2 976
春和景丽
春和景丽 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 00:55

    Under the monolog config in your config_dev.yml, remove the firephp/chromephp sections.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题