I have set up a new website using the Material UI Create React Template.
I added a Content Security Policy, built successfully and deployed, however the page doesn't display in the browser and I receive the following error:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-mB4hl8euSw00eXDUIRf8KeqpMfBXgg0FILGScPTo+n0='), or a nonce ('nonce-...') is required to enable inline execution.
I don't have any inline scripts.
When I add the specified hash to my Content Security Policy, the website works, but if I deploy again, the hash changes and I need to update my Content Security Policy with the new hash.
Where does the hash comes from and is it possible to avoid needing to update the hash manually each time during deployment?