Error Handling not using previously set CORS headers


#1

Hi All,

I’ve been trying to debug why my 404 (and other) errors are throwing CORS errors in web browsers, even though I’ve used the Slim CORS tutorial. After playing around a bit, I realised that it’s the error handlers (also from Slim tutorials) - they reset the header instead of using the headers that have been previously set.

Is there any way of making it use the existing headers, or will I need to reset them in each error handler?