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
I would like to configure CSP in the appsettings.json but as the title suggests also prevent adding the header for some requests that don't make sense (similar to how it's described in the docs to omit the response header on API requests).
which overrides the CSP options defined in the appsettings.json which IMO is a bug. If the options are already configured, the UseCsp call with the builder parameter should not generate empty CSP which it does.
The text was updated successfully, but these errors were encountered:
litera
changed the title
Configure CSP in appsettings.json but want to use OnSendingHeader
Configure CSP in appsettings.json but want to set OnSendingHeader
Mar 18, 2024
I would like to configure CSP in the appsettings.json but as the title suggests also prevent adding the header for some requests that don't make sense (similar to how it's described in the docs to omit the response header on API requests).
I set the configuration using
and in order to configure
OnSendingHeader
in theUseCsp
:which overrides the CSP options defined in the appsettings.json which IMO is a bug. If the options are already configured, the
UseCsp
call with the builder parameter should not generate empty CSP which it does.The text was updated successfully, but these errors were encountered: