mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 02:44:33 +03:00
2cd8f89933
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. |
||
---|---|---|
.. | ||
client@a00da75736 | ||
frontend | ||
server | ||
shared/nql-map-key-values | ||
test | ||
index.js |