Skip to content

How do I set global content security policy headers? #17718

Answered by tcobbfis
tcobbfis asked this question in Q&A
Discussion options

You must be logged in to vote

following advice from Mark Bartha with Lombiq, I basically made a copy of this file: Lombiq.HelpfulLibraries.AspNetCore/Security/CdnContentSecurityPolicyProvider.cs
and modified it. (Since I'm using the lombiq libraries)

then added it in program.cs

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hishamco
Comment options

@Piedone
Comment options

@tcobbfis
Comment options

Answer selected by tcobbfis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants