Add support for setting referer policy from route in issue #3027122

Created on 28 July 2021, over 3 years ago
Updated 24 January 2024, about 1 year ago

Problem/Motivation

Core issue #3027122: Set "Referrer-Policy" header to prevent leaking secret tokens in URLs allows the setting of a "path_has_secret" option in the route to set a more secure referer policy. A part of the patch it adds this setting to the single use login paths and /user/password.

So if your site has the related issue patch installed the referer will be overwritten and in my case it was downgraded.

Proposed resolution

Add a check in the route for the "path_has_secret" option and if it is false we will allow the setting of the referer. My first patch only stops the overwriting but we may want to duplicate the setting so you can set a referer policy for routes with the option set.

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇦🇺Australia gordon Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024