Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.37k stars 1.06k forks source link

Error when loading `assets/mode-pipeline.js` for pipeline source code editor. #16725

Open linuspahl opened 1 year ago

linuspahl commented 1 year ago

Description

When opening the source code editor for a pipeline rule, the following browser console error occurs in production:

Refused to execute script from '/assets/mode-pipeline.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

In the dev environment the console error is:

Uncaught SyntaxError: Unexpected token '<' (at mode-pipeline.js:1:1)

In both cases the JS file contains HTML. I just checked it for development, but the related JS code is still being executed.

Your Environment

drewmiranda-gl commented 4 months ago

Noting i still see this in 6.0.3. Unclear if its harming functionality in any way or is a benign error.

linuspahl commented 4 months ago

It does not harm any functionality.