Skip to content

toolbar.js was blocked because of a dissallowed MIME type ("text/plain") #1352

Closed
@JamieSharpe

Description

@JamieSharpe

Hello,

I have followed each step from this guide.

However the toolbar will not appear.

Inspecting the HTML of a webpage when the django server is running in debug mode confirms that the panels are present; although hidden.

image

Modifying the CSS confirms that the base panel can be displayed as well:

image

Django is returning a HTTP 200 status on the files required:

image

I found that the problem lies with the javascript file was not loading due to it's MIME type:

image

I am able to resolve this by importing the javascript file directly within my own templates; Note that this is without the 'type="module"' attribute:

image

After reloading the webpage, the toolbar works as expected. This is only a temporary fix to the real issue which was intruduced at these commits #1 and #2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions