View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036864 | mantisbt | other | public | 2026-02-04 11:19 | 2026-03-07 13:19 |
| Reporter | raspopov | Assigned To | community | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.28.0 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0036864: Proposal for implementing deferred HTTP headers | ||||
| Description | Currently, MantisBT outputs HTTP headers directly during Delaying the output of the headers until immediately before the page content is output allows for the flexible selection of the styles and scripts that will load for a specific page. Most of these external resources require a specific CSP header. These changes will enable us to remove scripts, such as | ||||
| Tags | No tags attached. | ||||
|
PR: https://github.com/mantisbt/mantisbt/pull/2178 Example usage for Viz.js File
|
|
|
@raspopov Great minds think alike... This is the review comment for the http_csp_add() call in PR 2175 I drafted yesterday but forgot to send...
|
|
|
I reworked the PR and managed to avoid adding global constants. Now, PHP can handle all the header work. The main thing is to make sure that CSP headers can be overwritten. |
|
|
The PR was split into two parts. This one introduces convenient work with CSP headers, and the second one improves the |
|