View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034589 | mantisbt | code cleanup | public | 2024-08-20 19:08 | 2024-08-25 04:31 |
Reporter | ThecaTTony | Assigned To | dregad | ||
Priority | low | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.20.0 | ||||
Target Version | 2.26.3 | Fixed in Version | 2.26.3 | ||
Summary | 0034589: CSP img-src has a duplicate 'self' value | ||||
Description | Hi, I was checking the security headers via https://securityheaders.com and I see that img-src lists 'self' twice: img-src 'self' 'self' data:; The file mantisbt/core/http_api.php has this two lines: 229 http_csp_add( 'img-src', "'self'" ); I commented line 229 and tested it again on the site and it successfully validated the CSP header. I think it is safe to remove that line from the code. | ||||
Tags | No tags attached. | ||||
The duplicated Problem was introduced when line 230 was added (see 0025465 for details). I believe that the correct fix is to remove
This requires testing to ensure that Dropzone preview still works after the change. |
|
I made the suggested changes on the instance I manage and the dropzone works without problems. |
|
Yep I ran the same test too. Thanks for the feedback. |
|