Ghost/core/server
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
..
adapters 🏗 Removed reschedule method from scheduling adapter 2019-11-27 13:38:30 +05:30
api Added support for secondary navigation (#11409) 2019-12-04 11:12:02 +07:00
config 🐛 Fixed csv file uploads on Windows w/Excel installed 2019-11-26 15:11:05 +00:00
data Added support for secondary navigation (#11409) 2019-12-04 11:12:02 +07:00
lib Merge branch 'master' into v3 2019-10-11 11:31:31 +01:00
models Merge branch 'mega' 2019-11-27 12:12:27 +00:00
public Merge branch 'master' into mega 2019-11-18 11:09:46 +00:00
services Renamed authentication middleware to createSessionFromToken 2019-12-04 09:49:13 +02:00
translations Added /emails/:id/retry/ endpoint for retrying failed emails (#11410) 2019-11-22 14:20:32 +00:00
views Update default 404 page 2019-07-15 14:47:01 +02:00
web 🐛 Fixed 500 errors for incorrect Origin headers (#11433) 2019-12-04 18:06:30 +07:00
analytics-events.js Added event to integrations when created (#10588) 2019-03-11 15:28:17 +01:00
ghost-server.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
index.js Merge branch 'master' into mega 2019-11-18 11:09:46 +00:00
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00