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
It will allow greater versatility and customisation if the build_policy function was made to return the csp variable before it is changed into policy_parts (https://github.com/mozilla/django-csp/blob/main/csp/utils.py#L90). It would be required to refactor the addition of nonce and final string construction (https://github.com/mozilla/django-csp/blob/main/csp/utils.py#L111) to new functions. Developers could then hook into the output of build_policy ordering/appending as required and then returning the nonce and string construction function outputs as required.
The text was updated successfully, but these errors were encountered:
It will allow greater versatility and customisation if the
build_policy
function was made to return thecsp
variable before it is changed intopolicy_parts
(https://github.com/mozilla/django-csp/blob/main/csp/utils.py#L90). It would be required to refactor the addition of nonce and final string construction (https://github.com/mozilla/django-csp/blob/main/csp/utils.py#L111) to new functions. Developers could then hook into the output ofbuild_policy
ordering/appending as required and then returning the nonce and string construction function outputs as required.The text was updated successfully, but these errors were encountered: