Follow below steps to block all the third party cookie(demdex, Fingerprinting, Authorization, General, Advertising) call when consent is not accepted to resolve CSP Violations.
1. Update Experience Cloud ID Service Enable Opt In? as YES
2.. Create a rule with event as window load.
2. In action select action type a custom code and place below custom code.
var visitor = Visitor.getInstance ("Organisation id@AdobeOrg",{
trackingServer: "INSERT-TRACKING-SERVER-HERE", // same as s.trackingServer
//For CNAME support only. Exclude these variables if you're not using CNAME
marketingCloudServer: "INSERT-TRACKING-SERVER-HERE",
//Function variable
disableThirdPartyCookies: true
});