• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    [Solved]Webserver CSPs prevent Opera from displaying PDFs

    Opera for Windows
    1
    2
    1207
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • andersgustafsson
      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

      Reply Quote 0
        1 Reply Last reply
      • andersgustafsson
        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.

        Reply Quote 1
          1 Reply Last reply
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-