ClientErrorException - how to modify headers?
vylink opened this issue · comments
vylink commented
Hi,
Is it possible to modify response headers for ClientErrorException?
Error Response is not delivered to the browser because of CORS :( Any advice?
Cheers
Marek Bartoš commented
From #96 I see you use ResponseDecorator. Just implement IErrorDecorator, it should be enough.
https://github.com/apitte/core/blob/master/src/Decorator/IErrorDecorator.php#L19
vylink commented
Many thanks. It works perfectly.