In Drupal 8, core now sets the X-CONTENT-TYPE-OPTIONS. This will always override our setting in seckit config. We can do 1 of two things. Remove this setting and allow core to always set it, or we can override core if this is not enabled, as we do with the x-frame options in #2661644: Integrate with Drupal core clickjacking defense.
For now, in order to address #2764863: Fix tests I am going to comment out the test. If it is determined we need to override core, we can fix the code, then add this test back. If we remove it, we can remove the test all together.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2774927-x-content-type-options-header-4.patch | 4.86 KB | kmoll |
Comments
Comment #2
kmoll commentedComment #3
kmoll commentedI am going to implement this so that if it is disabled, we remove the header set by core to match the X-Frame header. But due to the fact that it closes a security concern, I think we default to it being on, and in the description we say that it is highly recommended to leave that option on.
Comment #4
kmoll commentedcreate a patch for it.
Comment #5
kmoll commentedComment #6
jribeiro commented+1 RTBC
Comment #7
naveenvalechaAdd the test for when it will be true as well.
RTBC +1
Comment #9
naveenvalechaThanks!
Comment #10
badjava commentedCommitted, thank you everyone!
@naveenvalecha The test for when it is true is there and passing.
Comment #11
naveenvalechacool then