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
When the setting REPORT_PERCENTAGE is set to 100%, the report-uri should always be included in the Content Security Policy header. However, it has been observed that this is not true.
The current logic allows this issue to occur because when the randomly generated integer equals 100, the condition to include the report-uri is not met. Specifically, the check 100 < 100 evaluates to False, which results in the report-uri being omitted from the CSP header. This effectively means that even with REPORT_PERCENTAGE set to 100%, there is a scenario where the report-uri is not included, preventing the expected reporting of CSP violations.