aspnetcore-security-headers icon indicating copy to clipboard operation
aspnetcore-security-headers copied to clipboard

Add support for checking response type before adding headers

Open juunas11 opened this issue 7 years ago • 1 comments

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.

juunas11 avatar Jan 12 '18 14:01 juunas11

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

agilenut avatar Apr 15 '19 20:04 agilenut