Using route middleware with report-only mode #157
Unanswered
pawel-baster
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for a very useful package that helps a lot in maintaining CSP policies. I wanted to upgrade from v2.10 to v3.5 and I've noticed that in the new version:
I am using three Policy/Preset classes for different parts of the project (each intended for a different category of users). They are attached to routes via route group middleware like this:
It seems that there's no way to set my policies/presets to report-only mode or enable reporting, because this code in AddCspHeaders does not support neither report-only header nor report-uri:
I am wondering if I am missing something or is replicating my v2 setup not possible in v3?
Beta Was this translation helpful? Give feedback.
All reactions