Skip to content

when no custom css/js is defined, wrong mimetype causes Chrome to complain #2514

@nitram509

Description

@nitram509

Component

server, web-ui

Describe the bug

Just open Chrome developer tools window and navigate to https://ci.woodpecker-ci.org.

error message
Refused to apply style from 'https://ci.woodpecker-ci.org/assets/custom.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Screenshot 2023-10-01 at 17 04 07

System Info

* Chrome latest version (as of 2023-10-01)
* Woodpecker next-7d2bf54685

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions