From c86f568b9cd1fc69c67762ba39714e38c9ba70fb Mon Sep 17 00:00:00 2001 From: Paul Tremberth Date: Tue, 17 Jan 2017 22:31:29 +0100 Subject: [PATCH] Update docs with "strict-..." policies --- docs/topics/spider-middleware.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/topics/spider-middleware.rst b/docs/topics/spider-middleware.rst index a9d3d4568..e8325d7ef 100644 --- a/docs/topics/spider-middleware.rst +++ b/docs/topics/spider-middleware.rst @@ -344,9 +344,18 @@ This setting accepts: - a path to a ``scrapy.spidermiddlewares.referer.ReferrerPolicy`` subclass, either a custom one or one of the built-in ones (see ``scrapy.spidermiddlewares.referer``), -- or one of the standard W3C-defined string values, i.e. ``"no-referrer"``, - ``"no-referrer-when-downgrade"``, ``"same-origin"``, ``"origin"``, - ``"origin-when-cross-origin"`` or ``"unsafe-url"``. +- or one of the standard W3C-defined string values: + + - `"no-referrer" `_, + - `"no-referrer-when-downgrade" `_, + - `"same-origin" `_, + - `"origin" `_, + - `"strict-origin" `_, + - `"origin-when-cross-origin" `_, + - `"strict-origin-when-cross-origin" `_, + - or `"unsafe-url" `_ + (not recommended). + (It can also be the non-standard value ``"scrapy-default"`` to use Scrapy's default referrer policy.)