[Solved]Webserver CSPs prevent Opera from displaying PDFs
-
andersgustafsson last edited by leocg
On a webserver with enhanced security, downloading a PDF gives just a blank page. I assume that this is similar to the same bug in Chrome, but there you get a partial page. On opera you just get a blank page. Ie server settings:
Header set Content-Security-Policy: "script-src 'strict-dynamic' 'nonce-rAnd0m123' 'unsafe-inline' http: https:; object-src 'none'; base-uri 'none';"
Opera 63.0.3368.71 -
andersgustafsson last edited by
Answering my own posting: This is the error:
Refused to load plugin data from 'https://www.acme.com/page.pdf' because it violates the following Content Security Policy directive: "object-src 'none'".Removed that from the csp config and now it works.