Build problems on my own server

Hello there,

I am building my project and testing it on a local server using xampp, it works perfectly. But when I upload it to my public server I get this error and the website does not work anymore.

I have searched for some information here: CSP Allow Inline Styles
But after applying the following line as the link suggests it still doesn’t work.

Header always set Content-Security-Policy "default-src 'self'; script-src *; style-src 'self' 'unsafe-inline'; font-src *;img-src *"

Has anyone face this problem before or knows how to solve it?