BigW Consortium Gitlab
Fix referals for :back and relative URL installs. `app/views/layouts/_head.html.haml` currently sets the referrer policy to "origin". This disables the use of `{ redirect_to :back }`, which is used frequently throughout GitLab, and also breaks relative URL installs for browsers that obey this policy (e.g., Chrome). For example, using the "origin" policy the "Save Changes" button on the profile screen will (a) dump you at the GitLab home screen (which I can confirm on GitLab.com) or (b) dump you out of GitLab entirely for a relative URL install (which I can confirm on my local install). The right policy is "origin-when-cross-origin", which disables HTTP_REFERER when coming from other sites but enables it internally. (https://w3c.github.io/webappsec-referrer-policy/) I can confirm that this fixes the problems with ":back" on my install. See merge request !1505
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ci | Loading commit data... | |
header | Loading commit data... | |
nav | Loading commit data... | |
_bootlint.haml | Loading commit data... | |
_broadcast.html.haml | Loading commit data... | |
_collapse_button.html.haml | Loading commit data... | |
_flash.html.haml | Loading commit data... | |
_google_analytics.html.haml | Loading commit data... | |
_head.html.haml | Loading commit data... | |
_init_auto_complete.html.haml | Loading commit data... | |
_page.html.haml | Loading commit data... | |
_page_title.html.haml | Loading commit data... | |
_piwik.html.haml | Loading commit data... | |
_search.html.haml | Loading commit data... | |
_user_styles.html.haml | Loading commit data... | |
admin.html.haml | Loading commit data... | |
application.html.haml | Loading commit data... | |
dashboard.html.haml | Loading commit data... | |
devise.html.haml | Loading commit data... | |
errors.html.haml | Loading commit data... | |
explore.html.haml | Loading commit data... | |
group.html.haml | Loading commit data... | |
group_settings.html.haml | Loading commit data... | |
help.html.haml | Loading commit data... | |
notify.html.haml | Loading commit data... | |
profile.html.haml | Loading commit data... | |
project.html.haml | Loading commit data... | |
project_settings.html.haml | Loading commit data... | |
search.html.haml | Loading commit data... | |
snippets.html.haml | Loading commit data... |