Closed JackGilmore closed 3 months ago
Hey @JackGilmore, yeah this is just a quirk - the FrameAncestorsDirectiveBuilder
derives from CspDirectiveBuilderBase
rather than CspDirectiveBuilder
because it has slightly different allowed sources. I've created a PR to add the same method directly to the FrameAncestorsDirectiveBuilder
- I think it makes sense, thanks!
Awesome! Thanks for turning this around so quickly :) Would it be possible for you to publish a new version of your nuget package so I can pull this down to use with my app?
Just pushed out a new version which contains this, v0.24.0!
When using
CspBuilder
during callingAddContentSecurityPolicy()
for creating aHeaderPolicyCollection
, the builder allows you to pass in anIEnumerable<string>
with multiple URIs e.g.This doesn't seem to be the case as the
.From()
method forAddFrameAncestors()
only appears to support a single string URI e.g.Is this an intentional design or is it possible to make
AddFrameAncestors().From()
support anIEnumerable<string>
also?