Ghost/core/server/web
Fabien O'Carroll 2cd8f89933 🐛 Fixed 500 errors for incorrect Origin headers (#11433)
no-issue

Our function for determining cors options created a new instance of URL
without wrapping it in a try/catch which meant any failures to parse the
URL bubbled down as a 500 error.

500 errors are commonly used for alerting at the infrastructure level,
and this error is definitely one caused by a badly configured client, so
we wrap the construction and crap out with a Bad Request Error (HTTP
400) if it fails.
2019-12-04 18:06:30 +07:00
..
admin 🐛 Fixed 404s when using a proxy setup (#11269) 2019-10-28 11:22:05 +00:00
api Added /emails/:id/retry/ endpoint for retrying failed emails (#11410) 2019-11-22 14:20:32 +00:00
shared 🐛 Fixed 404s when using a proxy setup (#11269) 2019-10-28 11:22:05 +00:00
site 🐛 Fixed 500 errors for incorrect Origin headers (#11433) 2019-12-04 18:06:30 +07:00
index.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
parent-app.js 🐛 Fixed 404s when using a proxy setup (#11269) 2019-10-28 11:22:05 +00:00