View Issue Details

IDProjectCategoryView StatusLast Update
0033756mantisbtinstallationpublic2024-02-20 16:58
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.26.1Fixed in Version2.26.1 
Summary0033756: Errors on browser console when installing
Description

When installing a new MantisBT instance (i.e. config_inc.php is not present), the following errors are reported in the browser's javascript console:

[Error] Refused to execute http://localhost/mantis/javascript_config.php?cache_key=c56e273e137e49dcaff509c1bc65362e as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
[Error] Refused to execute http://localhost/mantis/javascript_translations.php?cache_key=ff21d0da1d12a60a591ab59161a13583 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.

This caused by core.php redirecting to install.php, when attempting to load the dynamically built javascript files.

Since these scripts are not required when installing so we should just abort without returning any content.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master-2.26 6da6fb05

2024-02-17 07:11

dregad


Details Diff
Fix javascript console errors in install.php

This caused by core.php redirecting to install.php when config_inc.php
does not exist, when attempting to load the dynamically built javascript
files.

Fixes 0033756
Affected Issues
0033756
mod - core.php Diff File