Compute sha256/384/512 hashes of inline scripts and styles. Add these to your script-src or style-src CSP directive to allowlist specific inline code.
Add the chosen hash to script-src or style-src in your CSP.
script-src
style-src