You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all rendered header data from the rendered Fusion output is dropped. Therefore custom headers like Content-Type or others don't have any effect.
In my case I wanted to respond with JSON responses für 404 requests in a Fusion based API.
But the Content-Type was text/html instead of my configured application/json type.
My workaround was now to check the output for json content in the custom ExceptionHandler we use in the affected project and adjust the header manually.
Neos: 8.3
Flow: 8.3
The text was updated successfully, but these errors were encountered:
In
neos-development-collection/Neos.Neos/Classes/View/FusionExceptionView.php
Line 184 in 683b692
Content-Type
or others don't have any effect.In my case I wanted to respond with JSON responses für 404 requests in a Fusion based API.
But the
Content-Type
wastext/html
instead of my configuredapplication/json
type.My workaround was now to check the output for json content in the custom ExceptionHandler we use in the affected project and adjust the header manually.
Neos: 8.3
Flow: 8.3
The text was updated successfully, but these errors were encountered: