philomena-dev / philomena

Next-generation imageboard
GNU Affero General Public License v3.0
84 stars 29 forks source link

Relax CSP on development error pages #238

Closed liamwhite closed 2 months ago

liamwhite commented 2 months ago

"Fixes" https://github.com/philomena-dev/philomena/issues/235

There isn't a way to tell whether Plug.Debugger has rendered something, so just delete the CSP unconditionally on 500 responses in development/test mode. No change for prod mode.