Skip to content

Error while setting up: main_bundle.js was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff) #24

@St0rml

Description

@St0rml

Hey, thanks for this module, I'm quite eager to explore saltcorn-react views!

However, when setting up this module and trying the gettingStartedView, nothing renders on the page and the web-console throws the following errors:

GET https://my.saltcorn.domain/plugins/public/react/main_bundle.js NS_ERROR_CORRUPTED_CONTENT

The resource from “https://my.saltcorn.domain/plugins/public/react/main_bundle.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

Loading failed for the <script> with source “https://my.saltcorn.domain/plugins/public/react/main_bundle.js”.

I tried this in unmodified Chromium, as well as Firefox (Librewolf). Also, I tried both storage option configurations for the module and both "development" and "production" build. It also did not work with turning off "Enhanced Tracking Protection" in Firefox.

Saltcorn version: 1.2.0
React Plugin version: 0.1.2
Deployment with docker-compose behind nginx reverse proxy

Could you help me in finding the source of this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions