I've added support for the newish Referrer-Policy header using the attached patch. https://securityheaders.io seems to accept the results. If it's agreed that this is a useful addition to the project, I'll see what I can do with the 8.x-dev version in the next day or two.

Comments

wrd created an issue. See original summary.

wrd’s picture

StatusFileSize
new7.51 KB

Turned out I needed it myself for D8, so here is a patch for the 8.x-dev branch.

wrd’s picture

Assigned: wrd » Unassigned
wrd’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev

Updated to 8.x-1.x-dev, as that's probably more relevant.

lamp5’s picture

StatusFileSize
new7.74 KB

Hi. Thanks, @wrd for the patch. But I have a problem to apply it using composer and last dev. Reroll attached.

Status: Needs review » Needs work

The last submitted patch, 5: seckit-8-referrer-policy-2925376.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

hsponner’s picture

I have the same problem as #5, can't apply the patch for latest dev version.

mcdruid’s picture

Status: Needs work » Needs review
StatusFileSize
new7.37 KB

Thanks. I've applied the codesniffer fixes and tidied a couple of other things up.

Re-testing before committing this.

  • mcdruid committed 6db0980 on 8.x-1.x
    Issue #2925376 by wrd, lamp5, mcdruid: Add support for Referrer-Policy...
mcdruid’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

Thanks! Committed to 8.x-1.x

Leaving this open for backport to D7.

hsponner’s picture

Thanks @mcdruid, works like a charm.

adammalone’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new5.55 KB

Adding D7 patch here for review.

  • mcdruid committed 43ba573 on 7.x-1.x authored by adammalone
    Issue #2925376 by wrd, mcdruid, lamp5, adammalone: Add support for...
mcdruid’s picture

Status: Needs review » Fixed

Thanks Adam! I tweaked some whitespace and a couple of arrays to use the retro syntax for D7, but didn't change anything significant in your patch.

Thank you all who contributed to this!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.