We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following unit test fails:
#[test] fn default_is_fallback() { let csp_list = CspList::parse("default-src self; script-src self 'unsafe-eval'", PolicySource::Header, PolicyDisposition::Enforce); let check_result = csp_list.is_js_evaluation_allowed(); assert_eq!(check_result, CheckResult::Allowed); }
default-src is only supposed to take effect if there's no more specific directive, as I understand it.
The text was updated successfully, but these errors were encountered:
Yeah, step 5.2 of https://www.w3.org/TR/CSP/#can-compile-strings calls out checking for script-src, then looking at default-src if there is none.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The following unit test fails:
default-src is only supposed to take effect if there's no more specific directive, as I understand it.
The text was updated successfully, but these errors were encountered: