mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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. |
||
---|---|---|
.. | ||
admin | ||
api | ||
shared | ||
site | ||
index.js | ||
parent-app.js |