Scrapy, a fast high-level web crawling & scraping framework for Python.
Update docs with "strict-..." policies
Paul Tremberthc86f568b9cd1
diff --git a/docs/topics/spider-middleware.rst b/docs/topics/spider-middleware.rstindex 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" <https://www.w3.org/TR/referrer-policy/#referrer-policy-no-referrer>`_,+ - `"no-referrer-when-downgrade" <https://www.w3.org/TR/referrer-policy/#referrer-policy-no-referrer-when-downgrade>`_,+ - `"same-origin" <https://www.w3.org/TR/referrer-policy/#referrer-policy-same-origin>`_,+ - `"origin" <https://www.w3.org/TR/referrer-policy/#referrer-policy-origin>`_,+ - `"strict-origin" <https://www.w3.org/TR/referrer-policy/#referrer-policy-strict-origin>`_,+ - `"origin-when-cross-origin" <https://www.w3.org/TR/referrer-policy/#referrer-policy-origin-when-cross-origin>`_,+ - `"strict-origin-when-cross-origin" <https://www.w3.org/TR/referrer-policy/#referrer-policy-strict-origin-when-cross-origin>`_,+ - or `"unsafe-url" <https://www.w3.org/TR/referrer-policy/#referrer-policy-unsafe-url>`_+ (not recommended).+(It can also be the non-standard value ``"scrapy-default"`` to useScrapy's default referrer policy.)