aspnetcore-security-headers
aspnetcore-security-headers copied to clipboard
Add support for checking response type before adding headers
Quoting dasmulli on Slack:
could also look into not adding the headers before the next steps of the pipeline, but rather registering a delegate somewhere in the response. this would enable for response type checking.. other than checking the request for known api paths etc.
FYI - I think the change proposed here allows you to check the content-type of the response in the OnSendingHeader callback.
https://github.com/juunas11/aspnetcore-security-headers/issues/39