Problem/Motivation
Looks like https://git.drupalcode.org/project/drupalci_environments/-/blob/producti... enables rewrite but not headers.
Drupal's .htaccess file adds stuff within <IfModule mod_headers.c>. #2854817: Duplicate X-Content-Type-Options headers both with the value nosniff discovered a bug with it, and we want to ensure that the test coverage for it runs correctly on DrupalCI.
Steps to reproduce
Proposed resolution
Add a2enmod headers within apache.m4.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork drupalci_environments-3226187
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
andypostmakes sense
Comment #4
andypostnow images are building and I added
mod_expiresas it also mentioned in.htaccessComment #5
andypostStarted test in https://git.drupalcode.org/project/drupal/-/merge_requests/7745
ref https://git.drupalcode.org/issue/drupal-3386474/-/pipelines/156733
Comment #6
andypostAnd the run for D7 https://git.drupalcode.org/issue/drupal-3443234/-/pipelines/156737
Comment #7
andypostD7 has fail
- https://git.drupalcode.org/issue/drupal-3443234/-/jobs/1432789
- https://git.drupalcode.org/issue/drupal-3443234/-/jobs/1432799
Comment #8
andypostAnd that's expected behavior that header is always set https://git.drupalcode.org/project/drupal/-/blob/7.x/.htaccess?ref_type=...
Comment #9
andypostD7 has known issue, so testing within #3116482: Duplicate X-Content-Type-Options headers both with the value nosniff [D7]
Comment #10
andypostTests on D7 using patch went green, so gonna commit to production #3116482-9: Duplicate X-Content-Type-Options headers both with the value nosniff [D7]
Comment #12
andypost8.1-8.3 deployed https://git.drupalcode.org/project/drupalci_environments/-/jobs/1433415