Skip to content

PDF files not showing in renderer #8294

Closed
@mehalter

Description

@mehalter
  • Gitea version (or commit ref): 1.9.3
  • Git version: 2.16.5
  • Operating system: CentOS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

PDF Files are not showing in the renderer, the /vendor/plugins/pdfjs/web/viewer.html?file=...pdf request has X-Frame-Options: DENY header. I can follow the link and serve the file, but the header option doesn't allow it to be in the iframe. When I set the headers in my apache config, it doesn't apply to the /vendor/plugins/pdfjs/web/viewer.html?file=....pdf requests.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/staletype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions