eea / volto-corsproxy

A Volto middleware that provides a CORS proxy
MIT License
3 stars 0 forks source link

getProxiedExternalContent doesn't handle errors #2

Open nileshgulia1 opened 4 years ago

nileshgulia1 commented 4 years ago

If external CORS destinations are not set in config settings. The action doesn't send error in subrequest object and the page crashes itself. We see a socket error.

nileshgulia1 commented 3 years ago

Providing a next fn to onError handler argument can do custom error handling. https://expressjs.com/en/guide/error-handling.html