Skip to content

Commit

Permalink
Update docker/web_nginx.conf
Browse files Browse the repository at this point in the history
Co-authored-by: Drini Cami <cdrini@gmail.com>
  • Loading branch information
mekarpeles and cdrini authored May 12, 2021
1 parent 7ae0228 commit b7be22c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/web_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ server {

include /run/secrets/petabox_seed;

# Set the referrer policy so browsers send referrers to our own servers
# In July 2020, Chrome changed its default referrer policy so any cross-origin
# requests only sent the root referrer `/`. Since openlibrary.org
# has a different "origin" than analytics.archive.org, the full referrer
# path is not sent. This changes the behavior back to the pre-July 2020 change.
add_header Referrer-Policy "no-referrer-when-downgrade";

root /openlibrary;

# Show closed-library page on errors.
Expand Down

0 comments on commit b7be22c

Please sign in to comment.