PreprocessingDelegatingHandler runs on every single request so requests for non-API resources (such as CSS and JS assets for the Swagger UI) are rejected with a JsonApiException.
Is there any reason why the handler can't be executed only for requests with an accept header containing the JSON API media type?
PreprocessingDelegatingHandler
runs on every single request so requests for non-API resources (such as CSS and JS assets for the Swagger UI) are rejected with a JsonApiException.Is there any reason why the handler can't be executed only for requests with an accept header containing the JSON API media type?