问题 I got the following problem: Having set Content-Security-Policy style-src 'self' within .htacess file, chrome complains in the developer console when displaying PDF files linked like <a href="file.pdf"> . Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-[deleted]'), or a nonce ('nonce-...') is required to enable inline execution. I can also see that chrome applies some css