Skip to content

Site theme CSS is blocked in the browser #15

@T-Fletcher

Description

@T-Fletcher

Hi, after installing Drupal and loading the site in the browser, no styles render. This happens with both the Minimal and Standard install profiles.

Checking the console shows the minified theme CSS is being blocked:

The resource from “css_1234.css" was blocked due to MIME type ("text/html") mismatch (X-Content-Type-Options: nosniff)

However accessing the CSS uri directly is met with a 500 error.

@simesy suggested running ddev exec yarn --cwd="core" from the post-install-actions item in the install.yaml script.

I'm not sure what this does, but it worked nicely and the theme CSS could load correctly.


Tested on:

  • MacOS 14.0 Senoma, Intel core i9
  • DDEV 1.22.7
  • yarn 4.1.1 (after implementing this fix)
  • Firefox 124.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions