Can i remove meta header unsafe-inline and fix

Below is the default CSP header

Removing these headers of “unsafe-inline” and “unsafe-eval”, I get an error on the code from bundle.js
Is it possible to remove the unsafe-inline and eval, with some “nonce” method fix directly in bundle.js?